open pdf document...  
Author Message
IamHuM





PostPosted: Visual C# General, open pdf document... Top

Hi...

How i can open a pdf document on a button click event... My pdf document is there in my C# project folder.

Thank & Adavance...

Vinay



Visual C#20  
 
 
Paul Louth





PostPosted: Visual C# General, open pdf document... Top

System.Diagnostics.Process.Start(pdfFileName);
 
 
Bander ALSHARFI





PostPosted: Visual C# General, open pdf document... Top

System.Diagnostics namespace has a process class to do this in a simple way assuming that you have a default reader (ex: Acrobat Reader) for PDF Files.

using System.Diagnostics;

Process.Start(“Path_of_PDFFile”)

Note:
Path_of_PDFFile in C# should contain two backslashes for example C:\\PDFFiles\\TestPDF.pdf.



 
 
vinay.p





PostPosted: Visual C# General, open pdf document... Top

Thanks...

Its working...