Click here to Skip to main content
13,096,763 members (95,346 online)
Rate this:
Please Sign up or sign in to 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......

Posted 21-Jul-11 0:33am
digimanus 21-Jul-11 6:42am
You can do Process.Start(nameOfPdfFile); and acrobatreader will open your PDF.

Urgent enough?
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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.[^]

Third, answer to your question: You can use Adobe PDF Reader control (if its installed) or go through this link[^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Do you want to use your pdf file as help file for your project on client machine after installation of your project.
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

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();
    string helppath = PathOnclientMachine + "\\Help manual.pdf"; 
    Help.ShowHelp(this, helppath);
    MessageBox.Show("Help file has been corrupted";, "Warning",     MessageBoxButtons.OK, MessageBoxIcon.Information);

Hope this will help you.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 21 Jul 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100