I try to open a PDF on disk and show it in a HTMLViewer. But Windows shows a message ‘do you want to open etc’ and then displays the PDF in the separate viewer app.
[code]'Get the PDF file as a folderitem
Dim f As FolderItem = SpecialFolder.Desktop.Child(“CAO.pdf”)
'load doc in viewer
'HTMLViewer1.LoadURL(“file:///C:/Users/Sander/Desktop/CAO.pdf”)
HTMLViewer1.LoadPage(f)[/code]
How can I force to open the PDF in the HTMLViewer?
Is there a way to run searches and highlight the pdf from code using this method? I need to be able to do it on both Mac and PC. Preferably with one code base.