Printer property

Microsoft Visio Developer Reference

Printer property

   Example   

Specifies the name of the printer to use when printing the document.

Version added

2002

Syntax

strRet = object.Printer
object.Printer = strExpression

strRet

String. The current printer.

object

Required. An expression that returns a Document object.

strExpression

Required String. The new printer.

Remarks

The Printer property corresponds to the Name box in the Print dialog box (click Print on the File menu).