TX Text Control ActiveX

PrintDoc Method

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

ParameterDescription
DocNameSpecifies the name of the document used for the print job.
FromPageSpecifies the first page to print.
ToPageSpecifies the last page to print.
CopiesSpecifies the number of copies to print.

Return Value

This method has no return value.

Data Types

NameData type
DocNameString
FromPageInteger
ToPageInteger
CopiesInteger

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.

See Also