WebBrowser-Modul - How can I open a pdf-file which is not called *.pdf?

  • Thread starter Thread starter witcher7
  • Start date Start date
W

witcher7

Guest
Hi,


i got on my form a webbrowser-modul and i want to open a pdf-file!

But I want only to open this pdf-file only in my form. So i changed the ending from "data.pdf" to "data.zyx".

I know how to open it in Adobe-Reader, but with this code the Adobe-Reader show the file and not my form...

Diagnostics.Process.Start("C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe", Application.StartupPath & "\" & "data.zyx")

I´ve learned how to open a pdf-file in my webbrowser-modul :

WebBrowser1.Navigate(Application.StartupPath & "\" & "data.pdf" & "#toolbar=0&navpanes=0&scrollbar=0")

But when I change the ending to .zyx it doesn´t open the file.

WebBrowser1.Navigate(Application.StartupPath & "\" & "data.zyx" & "#toolbar=0&navpanes=0&scrollbar=0")


How can I open the file with ending .zyx in my webbrowser as pdf?


Thanks and best regards

witcher7

Continue reading...
 
Back
Top