Getting information about a printer
Use the TPrinter object to get information about the printer you intend to use.
The TPrinter object contains information about the following attributes:
- Source tray information defines the possible input media tray parameters.
- Destination bin information identifies the stacking order of the media.
- Document finishing provides hints about the finishing capability of the printer.
- Resolution setting provides the printer's current resolution.
In general, to get information about the printer's attributes, you get an iterator for the attribute you want and iterate over the attributes.
For example, to get the default page size call TPrinter.CreateDefaultPageDescription(). If there is more than one page size that the printer can handle, then call TPrinter.CreatePageDescriptionIterator() and parse it for other page size options. If there is only one, the iterator will contain just the one that corresponds to CreateDefaultPageDescription().
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker