Accusoft PrintPRO 7
PrintTextAligned Method
See Also  Send Feedback
prntStr
A string expression to print.
X1
Single-precision values indicating the coordinates of the starting point for the bounding rectangle.
Y1
Single-precision values indicating the coordinates of the starting point for the bounding rectangle.
X2
Single-precision values indicating the coordinates of the end point for the bounding rectangle.
Y2
Single-precision values indicating the coordinates of the end point for the bounding rectangle.
AccusoftPrintPro7 ActiveX DLL > PrintPro Object : PrintTextAligned Method

Glossary Item Box

Description

Places text on the document inside a specified rectangular area within the display area.

Syntax

Visual Basic
Public Sub PrintTextAligned( _
   ByVal prntStr As String, _
   ByVal X1 As Single, _
   ByVal Y1 As Single, _
   ByVal X2 As Single, _
   ByVal Y2 As Single _
) 

Parameters

prntStr
A string expression to print.
X1
Single-precision values indicating the coordinates of the starting point for the bounding rectangle.
Y1
Single-precision values indicating the coordinates of the starting point for the bounding rectangle.
X2
Single-precision values indicating the coordinates of the end point for the bounding rectangle.
Y2
Single-precision values indicating the coordinates of the end point for the bounding rectangle.

Remarks

The text is placed using the current alignment style defined by the Alignment property. The text will automatically word-wrap if the WordWrap property is True. The PrintTextAligned method prints embedded carriage returns.

The CurrentX and CurrentY properties are not changed by the PrintTextAligned method. If a printer has not been selected or a document has not been started, the PrintTextAligned method will select the default printer and start a new document.

Note: When printing an ampersand (&), you must print two (&&) of them for one to print.

See Also

©2013. Accusoft Corporation. All Rights Reserved.