954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Open a PDF document

I want to open a PDF document when I click on a button.

I know the way to open a word document but couldn't apply the same method to open a PDF document.

If anyone can help me regarding this matter it would be a great help to me.

Thank you

kimbula...
Newbie Poster
14 posts since Jun 2009
Reputation Points: 9
Solved Threads: 0
 
__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

If you are simply looking to open a PDF file in it's associated application such as Adobe Reader, then you can use this.

System.Diagnostics.Process.Start("C:\\MyPDF.pdf")


If you are trying to manipulate the PDF file after opening it then you can use the library ITextSharp as suggested by adatapost.

JadeSimon
Newbie Poster
12 posts since Aug 2009
Reputation Points: 20
Solved Threads: 5
 

Thank you very much. This will simply do my task.Thanks

kimbula...
Newbie Poster
14 posts since Jun 2009
Reputation Points: 9
Solved Threads: 0
 

how to open a pdf file in command prompt using vb.net....

vigneshwaran.b
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

Thank you very much.
Your's code is easy to write:$

asp.net_SoS
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You