SetPrinter Method


Top  Previous  Next


Sets the default printer to which all documents should be sent by Smart Print Control.


Syntax

object.SetPrinter([PrinterName])

Where object evaluates to a Smart Print Control.


The SetPrinter method has these arguments:


PartDescription  


PrinterNameString expression specifying the name of the printer to send documents to.  




Remarks

This method sets / changes the printer to which all documents should be sent by Smart Print Control. You can use the GetPrinters method to retrieve the names of all logical and physical printers installed / connected to the system, including network printers.
Note: This method does not change the Windows default system printer.