can anybody tell me if there is a possibility to find out on which printer a report was/is printed? I would like to get the printer name of the printer the user chooses?
Did anyone figure this out yet. It would be very helpful. I found a utility that will print a pdf file from Navision. I am using this to print drawings when the Production Job Card is printed. Currently it is printing the drawings using the default printer, but I would like to print the drawings to the same printer the user chose in the request form.
As I konw, Navision will choose the printer which has been set for the user in "Pinter Selection" table. If it find the printer it will use it to run printing job for the user. If not it will chosse the system default printer which has been setup in the oprating system.
That means we do not need to change the default system printer to some pdf printer. Actually we can define the pdf printer for the user who wants to run the pdf printer task in "Printer Selection" table. Then you can select it with giving some simple setfilter coding before running report.run(). But you should be aware that the third parameter of report.run() must be false which means you dont want to use system default printer.
Comments
Maybe somone knows a way with automation.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thanks
As I konw, Navision will choose the printer which has been set for the user in "Pinter Selection" table. If it find the printer it will use it to run printing job for the user. If not it will chosse the system default printer which has been setup in the oprating system.
That means we do not need to change the default system printer to some pdf printer. Actually we can define the pdf printer for the user who wants to run the pdf printer task in "Printer Selection" table. Then you can select it with giving some simple setfilter coding before running report.run(). But you should be aware that the third parameter of report.run() must be false which means you dont want to use system default printer.
MCP - MBS Navision
jle@naviworld.com