I've managed to create client-add ins that displays a PDF file from the nAV database using an embedded browser and some basic html that sets the path to the correct PDF.
This approaches uses Internet Explorer as default, and the PDF plugin that is enabled in IE.
This works fine on most machines, I have it running on some clients that use 2013R2 and 2013 with Adobe PDF Reader. If anyone interested, write me pm and I give you the sources.
However, I find the solution to be flawed. Especially on my NAV 2009 RTC client, there are 3 issues.
A) Some focus issues that is well known with Adobe + IE - really annoying, if you have a factbox to display a PDF, and you navigate to next record in a list, and the factbox steals the focus! Adobe plugin in unstable, it automatically disables itself, and you to re-activate it in IE settings.
C) Adobe Reader in latest version DC, adds an annoying toolbar that you cna't hide as default - hopefully soon fixed.
I've tried to make a 2009 RTC Addin that uses the Adobe PDF Reader controll directly, but no matter what, when I run the page, my client simply crashes. Has anyone been able to embed a Adobe PDF Reader control in a Client-Add DLL?
I know no-one in my network that does
Or better, managed to use some open-source solutions - I've considered to use PDFJS, but it's slow in my experience.
No, I never did. My experience has been that out of 5 servers I had it installed, 3 worked perfectely with no focus problems. 2 however had problems with focus, and no way to solve.
I am now trying to build a javascript addon instead, if you are interested I will post the solution if I manage to solve it.
Comments
What about using a HTML box to host the PDF? It must be possible to do that.
The Bingmaps examply on MSDN is also hosted in a HTML box.
http://stackoverflow.com/questions/4853 ... eb-browser
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I am currently receiving a pdf as byte array from a web service and looking for an embedded solution to display the pdf content in NAV (2013R2).
Cheers
Andrew
I've managed to create client-add ins that displays a PDF file from the nAV database using an embedded browser and some basic html that sets the path to the correct PDF.
This approaches uses Internet Explorer as default, and the PDF plugin that is enabled in IE.
This works fine on most machines, I have it running on some clients that use 2013R2 and 2013 with Adobe PDF Reader. If anyone interested, write me pm and I give you the sources.
However, I find the solution to be flawed. Especially on my NAV 2009 RTC client, there are 3 issues.
A) Some focus issues that is well known with Adobe + IE - really annoying, if you have a factbox to display a PDF, and you navigate to next record in a list, and the factbox steals the focus!
Adobe plugin in unstable, it automatically disables itself, and you to re-activate it in IE settings.
C) Adobe Reader in latest version DC, adds an annoying toolbar that you cna't hide as default - hopefully soon fixed.
I've tried to make a 2009 RTC Addin that uses the Adobe PDF Reader controll directly, but no matter what, when I run the page, my client simply crashes.
Has anyone been able to embed a Adobe PDF Reader control in a Client-Add DLL?
I know no-one in my network that does
Or better, managed to use some open-source solutions - I've considered to use PDFJS, but it's slow in my experience.
I have the same problem using Foxit-Reader SDK. Did you ever find a solution to the focus problem.
I am now trying to build a javascript addon instead, if you are interested I will post the solution if I manage to solve it.
forum.mibuso.com/discussion/68021/pdfjs-inside-nav-page#latest