The Spool Library: 4.7 Print Control Instance Data: The Default Printer

Up: GEOS SDK TechDocs | Up | Prev: 4.6 Document Name Output | Next: 4.8 Adding UI Gadgetry
PCI_defPrinter, MSG_PRINT_CONTROL_SET_DEFAULT_PRINTER, MSG_PRINT_CONTROL_GET_DEFAULT_PRINTER

As this documentation has already stressed, one of the printing system's more important features is that it is device independent. However, certain special-purpose applications could conceivably depend on the user's printer type, and those applications may have use for the Print Control's PCI_defPrinter field. When the Print Control first appears, it will normally have the system default printer selected. Using the PCI_defPrinter option, another printer might be selected. The user may of course override the default printer and select another.

You can set or retrieve the value in PCI_defPrinter with the messages listed above. For information on them, see Working with Instance Data .

There are utility routines to get information about the system default printer. There are commands to retrieve information about each of the installed printers so that the application may find out whether the desired type of printer is installed and, if so, what its printer number is. These routines are described in Printer Information and Manipulation .


Up: GEOS SDK TechDocs | Up | Prev: 4.6 Document Name Output | Next: 4.8 Adding UI Gadgetry