PrintDoc Method


Top  Previous  Next


Sends the document to the selected printer or default system printer.


Syntax

object.PrintDoc([PrinterName])

Where object evaluates to a Smart Print Control.


The PrintDoc method has these arguments:


PartDescription  


PrinterName(Optional). String expression that specifies the name of the printer to send the document to (e.g. FAX Printer).  



Remarks

If PrinterName is not supplied or the value specified does not match any existent physical or logical printer, the document is sent to the default system printer specified in the printers settings of the system. You can also specify the printer name by using the SetPrinter method before calling this method and ignore the PrinterName argument.