Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a PDF or JPEG

Status
Not open for further replies.

jnavarro

Programmer
Dec 1, 2003
89
US
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.



Thanks in advance
 
You'll need to find a control that can open a PDF that you can place on your form, then. Take a look at
Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Is there other way to view pdf files using the tool in vb.net
 
jnavarro,

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.

Good Luck,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top