Hi all,
I've been searching the forum for a solution to my problem.
I have a report, I would like to print with a PDF-printer.
I do not want Navision to prompt me for a choice of printer. I want to change the System Printer to the PDF-printer, print the report without request forms or other user intervention and restore the system printer settings afterwards. Is there any way to do this?
BTW, any recommandations for a free PDF-printer, which is flexible and highly configurable from Navision code?
Thanks in advance.
/Emerik
0
Comments
You can change the users default printer by running this with 'Windows Script Host Object Model'.WshShell: After print out you have to change it back.
Hope this will help!
Cool!
Is there some way of telling me the name of the default printer, before I change it? If I have to change back the printer, I would need to know what it was before, I changed it. It can be various different printers depending on the user.
Sorry, but I've got no good solution for that. I solved it by adding a field to table User Setup, "Default printer name".
But please share if you find a nice way to find out which printer is the default printer for the logged in user.
viewtopic.php?f=5&t=25833
Regards
I guess I didn't manage to use the search function earlier... :oops: