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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB Win Form And PDF

Status
Not open for further replies.

HalaszJ

Programmer
Feb 24, 2004
4
US
Hello,

Kinda new to programming with VB WinForms, I am by trade a C language guy.

My question is, I have a form, that passes parameters to a crystal report, then saves it as a pdf. That works fine.

What I want to do is, then when the user wants, to allow them to view the pdf that was created. So I guess my question is, how do I create something that will allow me to view a pdf inside a winform?

Thanks
J.
 
The easiest way I can think of would be to add a web browser control to your form, and direct that control to the .pdf.
 
Wow, that seems a little extreme, I dont want to bloat this code too much and at the same time make it scalable.
 
I wouldn't think that the browser control would add that much overhead, but I've never put much thought into it. If you can find an Adobe active x viewer control, that would be the way to go. I checked in my toolbox and their appears to be one such control. It looks as though you set the src property with your pdf file name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top