Click here to Skip to main content
15,885,956 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear all please help me to create a project window base.
i have create a new folder in my solution explorar.And bye useing the exiting item i have insert a pdf file in that folder ......

Now on the button click i just want to show this pdf file in my window form ..

so that i create a setup of this project and pdf file will display every system ...

please do it fast as i need it very urgent......


thanks
regards:
N.K.UPADHYAY
Posted
Comments
Herman<T>.Instance 21-Jul-11 6:42am    
You can do Process.Start(nameOfPdfFile); and acrobatreader will open your PDF.

Urgent enough?
Sergey Alexandrovich Kryukov 28-Feb-13 0:20am    
Please stop posting non-answers as "solution". It can give you abuse reports which eventually may lead to cancellation of your CodeProject membership.
Comment on any posts, reply to available comments, or use "Improve question" (above).
Also, keep in mind that members only get notifications on the post sent in reply to there posts.

And do yourself a big favor: stop saying "it's urgent", stop saying "give me code". This will get you nowhere. It's not urgent for anyone, and giving you code won't help you. You need understanding and skills, not having your work done by someone else. You are only getting downvoted and abuse reports.

Thank you for understanding.
—SA

Dear Friend,
First thing,
Before postin/asking anything on CP please read FAQ.
Code Project Questions and Answers FAQ[^]

Secong, if you are not comfortable in english you can use this forum.
http://www.codeproject.com/Forums/1580229/Hindi.aspx[^]

Third, answer to your question: You can use Adobe PDF Reader control (if its installed) or go through this link
http://stackoverflow.com/questions/4504442/viewing-pdf-in-windows-forms-using-c[^]
 
Share this answer
 
v2
Do you want to use your pdf file as help file for your project on client machine after installation of your project.
 
Share this answer
 
For using a pdf file as a help on client system please use following steps:

First add your pdf file to your setup. You can use any special folder like "ApplicationData" for this purpose.

Then add following lines code on the button of your form to open that file on client machine.

private void button1_Click(object sender, EventArgs e)
{
    string PathOnclientMachine =  Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString();

try
{
    string helppath = PathOnclientMachine + "\\Help manual.pdf"; 
    Help.ShowHelp(this, helppath);
}
catch
{
    MessageBox.Show("Help file has been corrupted";, "Warning",     MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}


Hope this will help you.
 
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