Places text on the document inside a specified rectangular area within the display area.
- 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.
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.