Prints a Text Control document or a part of a Text Control document on the default printer.
TXTextControl.PrintDoc DocName, FirstPage, LastPage, Copies
Parameter | Description | |
DocName |
Specifies the name of the document used for the print job. |
|
FromPage |
Specifies the first page to print. |
|
ToPage |
Specifies the last page to print. |
|
Copies |
Specifies the number of copies to print. |
This method has no return value.
Prior to using this method the Text Control's output device can be selected using the PrintDevice property. If this property is not used Text Control prints to the printer, for which the document is currently formatted.
DocName | String |
FromPage | Integer |
ToPage | Integer |
Copies | Integer |
<< TXTextControl.PrintDialog Method | >> TXTextControl.PrintOffset Property