Accusoft PrintPRO 8
PrintTextAligned Method
A string expression to print.
Single-precision values indicating the coordinates of the starting point for the bounding rectangle.
Single-precision values indicating the coordinates of the starting point for the bounding rectangle.
Single-precision values indicating the coordinates of the end point for the bounding rectangle.
Single-precision values indicating the coordinates of the end point for the bounding rectangle.
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

PrintPro Object  | PrintPro Members

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback