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

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.

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

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.