Print to non-default Printer

Hi,


I would like to present the user with the standard Windows print dialog, the one where the user can select the printer, page range, etc, when the user goes to print a TAdvStringGrid.

I found the preview dialog which kind-a has that functionality. But I don't want to preview the print out, I just want the dialog.

Can this be done?

Thanks,
Shawn

You can use the standard Delphi (Windows) print selection dialog : TPrinterSetupDialog:


if PrinterSetupDialog1.Execute then grid.Print;