In Codeunit 1 you have the function FindPrinter(ReportID). Normally this function gets the printer by reading the printerselection and printer tables.
This function is always executed if you run a report. You cannot manipulate this. If you want your report to a specific device you should modify this function
Kind Regards,
Ron
Connectivity Studio for Microsoft Dynamics NAV - Where Microsoft Dynamics NAV meets the world
I've started using a single instance codeunit to contain 'System Globals' with functions for reading and setting them. In one case one of the globals was a printer override. I modified FindPrinter in codeunit 1 to read the printer override variable and if non-blank to use it instead of whatever the printer selection table might call for. Of course after using the override FindPrinter sets it to blank. Now all the report has to do is set the printer override variable and and FindPrinter takes it from there.
Comments
This function is always executed if you run a report. You cannot manipulate this. If you want your report to a specific device you should modify this function
Kind Regards,
Ron