Skip to content

How to specify your default printer

When an application knows which printer should be used to print, there are several ways to indicate this at the integration level.

Method Description
PrintToDefaultPrinter Prints without a dialog to the default printer in your Windows printer settings. An application could call GetDefaultPrinter and SetDefaultPrinter Windows API calls to change this. These functions can be found in the printing library.
Print_To_Printer_No_Dialog Calls PrintToDefaultPrinter.
psPrinterName Set this property to the real name of the printer as it appears in the printer dialog, and the PrintReport skips the dialog and reads the printer information directly.
psDeviceName Set this property - via the phoPrintDialog property - to the name of the desired default printer, and this printer will be preselected in the select printer dialog. This does not bypass the dialog nor read the printer settings, allowing users to select a different printer.