Printer (Object)

Represents a printer handled by the printing subsystem.
This object is read only and gives access to some properties of the printer.

Properties


Property DeviceName() As (Read Only)
Returns the printer device name.
Example:
This example displays the device name of the myPrinter printer.
 MsgBox myPrinter.DeviceName
 
Property Orientation() As (Read Only)
Returns or sets the default paper orientation.
Example:
This example retrieves in DefaultPaperOrientation the default paper orientation of the myPrinter printer.
 Dim DefaultPaperOrientation As CatPaperOrientation
 DefaultPaperOrientation = myPrinter.Orientation
 
Property PaperHeight() As (Read Only)
Returns the default paper height.
Example:
This example retrieves in Height the default paper height of the myPrinter printer.
 Dim Height
 Height = myPrinter.PaperHeight
 
Property PaperSize() As (Read Only)
Returns the default paper size.
Example:
This example retrieves in DefaultPaperSize the default paper size of the myPrinter printer.
 Dim DefaultPaperSize As CatPaperSize
 DefaultPaperSize = myPrinter.PaperSize
 
Property PaperWidth() As (Read Only)
Returns the default paper width.
Example:
This example retrieves in Witdh the default paper width of the myPrinter printer.
 Dim Width As float
 Width = myPrinter.PaperWidth