PrinterName Not Getting Set at Runtime
Hi All,
ReportBuilder for Delphi 2007 Professional Edition, Version 10.06
I'm trying to set the report's printer name at runtime, but it's not getting
set.
code:
ppReport.DeviceType := 'Printer';
ppReport.PrinterSetup.PrinterName := 'Accounting HP LaserJet 4250';
ppReport.Print;
The .PrinterName is = 'Default', after I try to set the name.
I've tried this on two different reports, same results.
Any ideas?
TIA--patrick dohogne
ReportBuilder for Delphi 2007 Professional Edition, Version 10.06
I'm trying to set the report's printer name at runtime, but it's not getting
set.
code:
ppReport.DeviceType := 'Printer';
ppReport.PrinterSetup.PrinterName := 'Accounting HP LaserJet 4250';
ppReport.Print;
The .PrinterName is = 'Default', after I try to set the name.
I've tried this on two different reports, same results.
Any ideas?
TIA--patrick dohogne
This discussion has been closed.
Comments
Do not set the PrinterName property directly. Try using the PrinterNames
list instead so you can be sure the correct name is being used.
ppReport.PrinterSetup.PrinterName := ppReport.PrinterSetup.PrinterNames[1];
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Your suggestion led me to my real issue - I left off the last two characters
of the printer name, when trying to assign it.
--patrick