Programming Reference Manual
 
Syntax
 
PrintTXdocument SourceFile, PrinterName[, Copies][, Duplex][, Orientation][, Paperbin][, PaperSize][, PrintQuality][, Zoom][, ColorMode]
 
Description
Prints a document to the specified local printer, using optional extra parameters for setting up the output for that printer.
 
Parameter
Description
SourceFile
The document that needs to be printed. The following document types are supported:
.pdf; .pdfa; .htm; .html; .txt; .rtf; .doc; .docx; .dot; .dotx; .css; .xml
PrinterName
The name of the printer to print to.
Copies
Optional. Default value = 1
Duplex
Optional. Use only values supported by the selected printer.
Orientation
Optional. Use only values supported by the selected printer.
Paperbin
Optional. Use only values supported by the selected printer.
PaperSize
Optional. Use only values supported by the selected printer.
PrintQuality
Optional. Use only values supported by the selected printer.
Zoom
Optional. Use only values supported by the selected printer.
ColorMode
Optional. Use only values supported by the selected printer.
See Also
Example
 
Sub Main
    PrintTXdocument "c:\Temp\mydocument.rtf", "Canon TS5300 Series", 2  'Prints two copies
End Sub