Print to invalid printername
Hi
When I try to print out at report using an invalid printer name nothings happens. How can I detect this
Code to reproduce:
var
rp: TppReport;
...
rp.DeviceType := dtPrinter;
rp.PrinterSetup.PrinterName := 'PrinterName'; //<-- Invalid printer name
rp.Print;
...
Jens Borrisholt
When I try to print out at report using an invalid printer name nothings happens. How can I detect this
Code to reproduce:
var
rp: TppReport;
...
rp.DeviceType := dtPrinter;
rp.PrinterSetup.PrinterName := 'PrinterName'; //<-- Invalid printer name
rp.Print;
...
Jens Borrisholt
Comments
The Report.PrinterSetup.PrinterNames property contains a list of all available printers. When selecting a printer, it is best to use this list or verify that the manually entered printer name exactly matches a name in this list.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com