Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear all please help me to solved this provlem ....

I have imported a PDF file in my project by clicking Add Exiting file....

Now to want to show this file on a button click ....
but i am not able to connect it.....
please help me how to connect it..........



N.K.UPADHYAY
Posted
Comments
Prerak Patel 11-Jul-11 2:12am    
Not clear. Do you just want to open a PDF file from disk?
Sergey Alexandrovich Kryukov 11-Jul-11 2:12am    
Connect?! With a button?! (Sigh...)
--SA

By 'connect' I assume you mean that you hope to keep using Wizards and not writing actual code ?


Process.Start(@"c:\myPDF.pdf");

will open a PDF in that location. I think it's System.Diagnostics you need to include for that to work.
 
Share this answer
 
Look at the Process.Start[^] method: feed it the path of the pdf file, and it will open it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900