PrintDoc Method
Prints a Text Control document or a part of a Text Control document on the default printer.
Syntax
TXTextControl.PrintDoc DocName, FirstPage, LastPage, Copies
Parameters
| 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. |
Return Value
This method has no return value.
Data Types
| Name | Data type |
|---|---|
| DocName | String |
| FromPage | Integer |
| ToPage | Integer |
| Copies | Integer |
Remarks
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.