Hello,
I'm having an problem.
I have this code on the end of a report:
If Print then
Run.Report("Report ID",FALSE,FALSE,Record);
(The print is TRUE)
The problem is that I want to call the new report and choose the printer, and what happens is that the window to choose the printer don't appers and starts to print in my default printer.
Someone knows what can be wrong?
I'm running an 4.0SP3 database.
Another thing, if I call the report thought the Object Designer I can choose the printer...
0
Comments
I'm not sure but I think you should specify the printer in table 78 "printer selection"..
Look at the help on the REPORT.RUN command - you are turning off the request form.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Even with the TRUE in request form, it prints in the default printer...
Hi,
Have you checked this as well? Does it happen for different report IDs?
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
For:
REPORT.RUN(ReportSelection."Report ID",True,TRUE,RentalInvHeader);
The Request form is shown then the Printer Selection box
For:
REPORT.RUN(ReportSelection."Report ID",FALSE,False,RentalInvHeader);
The default printer is used
For:
REPORT.RUN(ReportSelection."Report ID",FALSE,True,RentalInvHeader);
The default printer is used but I’d expect NO request form but YES the printer selection box.
I'd really like NO request form and YES to printer selection.
If the report is run from Ojbect manager you get the request form and the printer selction dialog. We are running 4.0 objects on the 2009 executables. (object upgrade planned for summer 2010.)
Ideas?