Hi fellow NAV Devs,
I am currently trying to get the following task done:
A PDF is stored on a network share. (not a NAV report, but created by a 3rd party WebService)
The PDF needs to printed after a certain operation in NAV is done, and it needs to be printed on the users DefaultPrinter.
Since NAV does not support automated printing of Documents outside of it's own Reports, i have to look out for another solution.
I already invested some hours trying to get it to work using DotNet, however no luck yet.
Things I already tried:
-> Starting another Process via System.Diagnostics
However using this the Adobe Window Pops up on every PDF i try to print. This is a bug in AdobeReader, which Adobe does not care about in the slightest.
https://forums.adobe.com/thread/1042132
-> I also started looking into some really dirty workarounds involving reading the pdf binaries and somehow making them work in RDLC
I am aware that this would be possible using GhostScript and other free resources. Only negative is that I would have to roll out the DLL's to (a lot of) clients, and i do not want to do this if there is another way around this problem. (NAV 2013)
Looking forward to your ideas!
TLDR: How to perform a "silent" print of a PDF from NAV without disturbing the user, or rolling out extra DLL's to the client.
I am currently trying to get the following task done:
A PDF is stored on a network share. (not a NAV report, but created by a 3rd party WebService)
The PDF needs to printed after a certain operation in NAV is done, and it needs to be printed on the users DefaultPrinter.
Since NAV does not support automated printing of Documents outside of it's own Reports, i have to look out for another solution.
I already invested some hours trying to get it to work using DotNet, however no luck yet.
Things I already tried:
-> Starting another Process via System.Diagnostics
However using this the Adobe Window Pops up on every PDF i try to print. This is a bug in AdobeReader, which Adobe does not care about in the slightest.
https://forums.adobe.com/thread/1042132
-> I also started looking into some really dirty workarounds involving reading the pdf binaries and somehow making them work in RDLC
I am aware that this would be possible using GhostScript and other free resources. Only negative is that I would have to roll out the DLL's to (a lot of) clients, and i do not want to do this if there is another way around this problem. (NAV 2013)
Looking forward to your ideas!
TLDR: How to perform a "silent" print of a PDF from NAV without disturbing the user, or rolling out extra DLL's to the client.