Printing and Print Preview
Printing a TXTextControl document goes through the system printing dialog or straight to a device. The members below print a whole document, a part of it or a single page, set the printer device context and set colors, offset and zoom for the printout.
Properties
| Member | Description |
|---|---|
TXTextControl.CurrentPages | Returns the number of pages contained in the current document. |
TXTextControl.PrintColors | Specifies whether text colors are printed as colors or in black. |
TXTextControl.PrintDevice | Sets the printer device context for TXTextControl's built-in printing function. |
TXTextControl.PrintOffset | Determines whether TXTextControl starts printing exactly at the top left corner of the page, or at the printer's physical printing offset. |
TXTextControl.PrintZoom | Specifies a zoom factor for printing. |
Methods
| Member | Description |
|---|---|
TXTextControl.PrintDialog | Opens the system printing dialog and prints a TXTextControl document as specified through the dialog. |
TXTextControl.PrintDoc | Prints a TXTextControl document or a part of a TXTextControl document on the default printer. |
TXTextControl.PrintPage | Prints a page of text on the default printer. |