Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# GUI
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 21-Jul-11 0:33am
Comments
digimanus at 21-Jul-11 6:42am
   
You can do Process.Start(nameOfPdfFile); and acrobatreader will open your PDF.
 
Urgent enough?
Sergey Alexandrovich Kryukov at 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
Rate this: bad
good
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.
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[^]
  Permalink  
v2
Rate this: bad
good
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.
  Permalink  
Rate this: bad
good
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();
 
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.
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 510
1 CPallini 330
2 OriginalGriff 215
3 George Jonsson 120
4 ChauhanAjay 104
0 OriginalGriff 6,464
1 Sergey Alexandrovich Kryukov 5,915
2 CPallini 5,175
3 George Jonsson 3,559
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 21 Jul 2011
Copyright © CodeProject, 1999-2014
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