PrintPRO 8 for ActiveX - User Guide > How To > Set Up Printer > Set Margins |
PrintPRO™ has top, left and bottom margins that can be set using the TMargin Property, Lmargin Property, and BMargin Property respectively. Margins are used by the PrintText Method.
When the Lmargin Property is set, the CurrentX Property is automatically set to the same value. When the TMargin Property is set, the CurrentY Property is automatically set to the same value.
The AutoMargin Property can be used to automatically set the margins to the top, left and bottom of the printers display area. For example, the following code prints Hello World at the upper left corner of the display area.
Example |
Copy Code
|
---|---|
Object.AutoMargin = True Object.PrintText "Hello World" |
You can also set the margins within the printers display area manually as follows:
Example |
Copy Code
|
---|---|
Object.LMargin = object.DisplayX Object.TMargin = object.DisplayY Object.Bmargin = Object.DisplayY |