Keep the same printer to several reports
In earlier version I used the following to print a number och reports and
keep it to the same printer without showing Printdialog more then once.
.....
MyReport1.ShowPrintDialog := True;
PrnDummy.PrinterSetup.PrinterName := MyReport1.PrinterSetup.PrinterNamn;
MyReport1.Print;
.........
MyReport2.ShowPrintDialog := False;
MyReport2.PrinterSetup.PrinterName := PrnDummy.PrinterSetup.PrinterName;
MyReport2.Print;
.................
and so on
If the printer I choose at start isnt my default windowsprinter I get the
second report to my defgault Windowsprinter.
How do I do when I want all reports to another printer then Windows default?
Qarl
__________ Information fr?n ESET Smart Security, version av virussignaturdatabas 5446 (20100913) __________
Meddelandet har kontrollerats av ESET Smart Security.
http://www.esetscandinavia.com
keep it to the same printer without showing Printdialog more then once.
.....
MyReport1.ShowPrintDialog := True;
PrnDummy.PrinterSetup.PrinterName := MyReport1.PrinterSetup.PrinterNamn;
MyReport1.Print;
.........
MyReport2.ShowPrintDialog := False;
MyReport2.PrinterSetup.PrinterName := PrnDummy.PrinterSetup.PrinterName;
MyReport2.Print;
.................
and so on
If the printer I choose at start isnt my default windowsprinter I get the
second report to my defgault Windowsprinter.
How do I do when I want all reports to another printer then Windows default?
Qarl
__________ Information fr?n ESET Smart Security, version av virussignaturdatabas 5446 (20100913) __________
Meddelandet har kontrollerats av ESET Smart Security.
http://www.esetscandinavia.com
This discussion has been closed.
Comments
Which version of ReportBuilder and Delphi are you currently using? The only
reason the code below would print to the default printer would be that the
printer being assigned does not exist or is in fact the default printer. My
first suggestion would be to use the PrinterSetup.PrinterNames property to
get a list of all available printers so you can be absolutely certain you
are using the correct printer name.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com