Description
| Initiate the Printer object, and optionally defines the outputtype and orientation and/or other options.
All printing starts with the Init function. Hereafter all Printer methods, functions and properties follows, completed by an Submit function.
Parameter
| Description
| vsOutputStyle
| This parameter contains the following pre-defined constants and values:
Constant
| Value
| Description
| vsPreview
| 0
| Default. The document is not printed, but instead redirected to a print preview window.
| vsPrintdirect
| 1
| All output is sent directly to the printer
| vsHTML
| 2
| All output is written to a standard HTML file.
A SaveAs dialog will be shown, unless ExportFilename contains a filename.
| vsDHTML
| 3
| All output is written to a Dynamic type HTML file.
A SaveAs dialog will be shown, unless ExportFilename contains a filename.
| vsPDFdoc
| 4
| The document is formatted and exported into a Adobe PDF file (Portable Document Format).
A SaveAs dialog will be shown, unless ExportFilename contains a filename.
| vsRTFdoc
| 5
| The document is formatted and exported into a RTF file (Rich Text Format).
A SaveAs dialog will be shown, unless ExportFilename contains a filename.
|
| vsOrientation
| This parameter contains the following pre-defined constants and values:
Constant
| Value
| Description
| orPortrait
| 0
| Default. The document will be generated upright.
| orLandScape
| 1
| The document will be printed sideways.
|
Note: the orientation remains in this setting, until it is changed using the Orientation property. Changes turn only into effect on the next page.
| NoHeadersAndFooters
| Default value: FALSE.
When TRUE, the Tradium system headers and footers, containing user and date information, will be suppressed from the generated document, increasing printing area of the document.
| ExportFilename
| Default value: empty string.
When a valid filename is specified in this parameter, the SaveAs dialog will not appear when output is sent to one of the file based options in vsOutputStyle.
| PrintDevice
| Default value: empty string.
When a valid devicename is specified and vsOutputStyle = vsPrintdirect, the output is sent to that printer, else the output is sent to the default printer.
|
|