TXTextControl.PrintPage Method |
| Description: | | Prints a page of text on the default printer. The number is specified through PageNumber.
|
| Syntax: | | TXTextControl.PrintPage PageNumber
|
| | | Parameter | | Description | | | | PageNumber | | Specifies the number of the page to print. The first page has the number 1.
|
|
| Return Value: | | This method has no return value.
|
| Remarks: | | Prior to using this method the Text Control's output device must be selected using the PrintDevice property.
|
| Data Types: | |
|
| Example: | | This Basic example shows how to print the contents of a Text Control on the default printer: Sub mnuFile_Print_Click ()
Dim wPages, No
Printer.Print
wPages = TXTextControl1.CurrentPages
For No = 1 To wPages
TXTextControl1.PrintDevice = Printer.hDC
TXTextControl1.PrintPage No
Printer.NewPage
Next No
Printer.EndDoc
End Sub
|
| See also: | | Printing and Print Preview, PageHeight Property, PageMarginx Properties, PageWidth Property, PrintDevice Property. |