PGetPrinterStyles

Gets the number of currently defined printer styles and their names.


Query results

PGetPrinterStyles is a subclass of PListQuery. This query returns a list of printer style names.

Queries to get settings of a printer style. To determine the settings of a printer style, you must obtain the style and then use the following queries:

PGetPrintColor
PGetPrintDoc (range always set to All)
PGetPrintFeature
PGetPrintFeatureItems
PGetPrintFeatureTitles
PGetPrintOptions
PGetPrintOptionsPS
PGetPrintPaperPS
PGetPrintTo

Example.

PGetPrinterStyles printerStyles;
for (short i = printerStyles.Count(); i > 0; --i) {
    if (strcmp (printerStyles, "Laser legal") == 0)
        PRemovePrinterStyle(printerStyles);
    printerStyles++;
}


See also

The PGetPrintColor, PGetPrintDoc, PGetPrinterList, PGetPrintFeature, PGetPrintFeatureItems, PGetPrintFeatureTitles, PGetPrintOptions, PGetPrintOptionsPS, PGetPrintPaperPS, PGetPrintPPDs, PGetPrintPS, PGetPrintScreens, and PGetPrintTo queries

The PAddPrinterStyle, PPrintColor, PPrintDoc, PPrinterStyle, PPrintOptions, PPrintOptionsPS, PPrintPaperPS, PPrintTo, and PRemovePrinterStyle commands



Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support