I am trying to open a pdf in vb net and preview the file in a mdi form. I don't want to use System.Diagnostics.Process.Start becuase this runs the application. My goal is to preview the file in a form using a preview dialog.
I've done exactly what you're after and it's actually easy. All you have to do is add the COM reference to the Microsoft Internet Controls. Place the WebBrowser control on your form and point it to your PDF. Since the WebBrowser control is just a wrapper around IE the PDF will open in it just like it does in IE.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.