All Frameworks  Object Hierarchy  This Framework  Indexes   

Printer (Object)

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

Property Index

DeviceName
Returns the printer device name.
Orientation
Returns or sets the default paper orientation.
PaperHeight
Returns the default paper height.
PaperSize
Returns the default paper size.
PaperWidth
Returns the default paper width.

Properties


o Property DeviceName() As (Read Only)
Returns the printer device name.
Example:
This example displays the device name of the myPrinter printer.
 MsgBox myPrinter.DeviceName
 
o 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
 
o 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
 
o 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
 
o 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
 

Copyright © 2003, Dassault Systèmes. All rights reserved.