How To…Configure Printer Specific Settings

Question

“How can I configure the printer’s proprietary settings, such as the print quality, stapler, color, etc?”

Solution

Use┬áthe Report.PrinterSetup.DeviceSettings property to configure a Printer’s proprietary features (print quality, color, stapler, etc.).

At design-time, use the Report Designer’s Object Inspector to select the PrinterSetup.DeviceSettings property. Next, press the Edit… button to display the Printer’s built-in properties dialog. Prior to closing the dialog press the OK button to save changes. This will cause the PrinterSetup.SaveDeviceSettings property to toggle to True.

The following example shows how to Edit, Save, and Load DeviceSettings at run-time.

Download: PrinterSetupDeviceSettings.zip

Sample Delphi code: