How To…Get DefaultPrinterSetup

Question

“How can I get the printer’s default settings, such as the paper name?”

Solution

The Printer.DefaultPrinterSetup property provides access to the printer’s default settings. Here is an example that iterates over the installed printers and populates a list box with the printer name and default paper name.

Download: DefaultPrinterSetup.zip

Sample Delphi code: