Syntax
| SQL.PrintWordDocument(FileName[, Copies][, PrinterName][, Orientation][, Paperbin] _
[, PrintQuality][, Duplex][, ColorMode][, PaperSize])
| ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Place the .DOC or .RTF document in the TRADIUM print queue.
From the queue, the document is opened a in Microsoft Word or in the internal TRADIUM Word Processor (depending on what the document was edited in) and then sent to the specified printer.
If no printer is specified, the document is printed on the currently selected default printer in Tradium.
Returns value TRUE if successful, FALSE otherwise.
Export
This function can also be used to export documents to another format file. This is similar to the Save As functionality in the Tradium Word Processor. To do this, the PrinterName parameter enters the complete path and file name, with the extension of the file name determining the type of export.
For example: PrinterName:="c:\documents\mydocuments.pdf" means that the document will be saved as an Acrobat Portable Document (PDF).
| ||||||||||||||||||||
See Also
| |||||||||||||||||||||
Example
| Sub Main() Dim sFile As String sFile = InputBox$("Bestand:") If SQL.PrintWordDocument(sFile, 2, "") Then Debug.Print |