Printers

TPrinter instances represent actual printers. The printer provides three things that are essential to printing:

You use TPrinter member functions to handle print jobs. TPrinter provides functions for canceling, deferring, adding, and removing print jobs from the printer queue.


Using printers

Printer Handlers construct printers maintained by Printing services. When you request a printer, or the end user specifies a print option, the system passes you a printer. You cannot instantiate your own printers, but you can save and resurrect printers stored with folios or flattened in data dictionaries.

NOTE Currently, you must construct the printer before you can use it. Future releases of the system will provide TPrinter objects. To instantiate a printer, use:

    TPrinter printer(TPrinter::kSystemPrinter);

Matching printers

While a user is editing a document, access to an actual printer is not required. The only printing resource needed is a page description, and the one associated with the folio is sufficient. Access to the folio's page description is supported without any printer involvement.

If an end user attempts to print to a non-existent printer, the system throws an exception. The system looks for an alternative printer that matches the original printer in type or capabilities and notifies the end user. The end user can then confirm the match or select another printer.

If there are no matches, no other printers available, and no selected alternative, the folio cannot be printed, but the end user can continue editing.


[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