why Printing on different printers ?
I'm using the FRReport.PrintpreparedReport Function.
Our customer wants to print many bill's without choosing the printer for output.
I did the following :
I'm setting the output printer with ->>> printer.printerindex := myvar ; (integer)
After this i'm trying to get out some reports with :
FRReport.PrepareReport;
FRReport.PrintpreparedReport(..etc..)
Some pages are coming out to the printer choosen with printer.printerindex.
Other pages are printer on the windows standard printer.
(Maybe every second report comes out on standard printer)
Can anyone help me to assign a specific printer before using printpreparedreport ???
Thank you for helping me ....
Our customer wants to print many bill's without choosing the printer for output.
I did the following :
I'm setting the output printer with ->>> printer.printerindex := myvar ; (integer)
After this i'm trying to get out some reports with :
FRReport.PrepareReport;
FRReport.PrintpreparedReport(..etc..)
Some pages are coming out to the printer choosen with printer.printerindex.
Other pages are printer on the windows standard printer.
(Maybe every second report comes out on standard printer)
Can anyone help me to assign a specific printer before using printpreparedreport ???
Thank you for helping me ....
Comments
make sure when you design report that the select when loaded option is not set to true. in designer menu file-report options.
Also try using printpreparedreportdlg function ,this will bring up the printer dialog where you can select printer and options.
regards
frReport1.ChangePrinter(nIndex, nIndex);
where nIndex would be something like Printer.PrinterIndex, etc.