Page History
...
The SRP_Get_PrinterInfo method is an OIPI-free way to get information about a single printer. The PrinterName parameter is the name of a printer as it appears in the computer's printer panel. You can also get the printer name by calling SRP_Get_Printers.
This method returns a single dynamic array that contains a wealth of information. Here is the structure:
...
Code Block |
---|
// Determine if the default printer is set to print on Letter size paper DefaultPrinter = SRP_Get_Printers("Default") Info = SRP_Get_PrinterInfo(DefaultPrinter) IsLetter = IndexC(Info<2, 5, 1>2>, "Letter", 1) GT 0 |