Open Printer Properties window

Open Printer Properties window - System - Tips & Tricks - Greatis Delphi Pages Use OpenPrinter procedure for getting printer handle and PrinterProperties procedure for opening printer properties window. Don't forget include WinSpool and Printers in uses chapter.

uses WinSpool, Printers;
procedure TForm1.Button1Click(Sender: TObject);
  MyPrinter, MyDriver, MyPort: array[0..100] of Char;
  PrinterHandle, DevMode: THandle;
  Printer.GetPrinter(MyPrinter, MyDriver, MyPort, DevMode);
  OpenPrinter(MyPrinter, PrinterHandle, nil);
  PrinterProperties(Form1.Handle, PrinterHandle);