I have test.pdf and I want to display it inside in my form.
My code is very simple:
public Form1() { InitializeComponent(); this.wbPdf.Navigate(@"file:///<fullpath>\test.pdf#toolbar=0"); }
and it does not work. This shows me a white page with an "X".
But if I do this:
this.wbPdf.Navigate(@"file:///<fullpath>\test.pdf#toolbar=0", true);
IE opened and it showed my pdf. Of course, I tried to use false in the second parameter and did not work.
Also, if I tried to do something like
this.wbPdf.Navigate(@"http://www.google.com");
he showed me google, so I think there is no configuration problem for Web Browser Control
Any ideas? I cannot install Acrobat Reader, so using ActiveX components is not an option (this project is also in x64 , and I read that this component does not work very well in x64 ).
I want to display the PDF only for viewing inside the form, and not in another window.
source share