SetPrinter Method
Top  Previous  Next


Sets the default printer to which all documents should be sent by ASP Printer.


Syntax

object.SetPrinter([PrinterName])

Where object evaluates to an ASP Printer object.


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 ASP Printer. 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 and has no effect when printing HTML files or HTML documents.

See also the GetPrinters method.