tags:

views:

19

answers:

2
+1  Q: 

open a PDF : WPF

I want to open a PDF file in a button click. I'll keep the PDF file within the solution/namespace of the project. Can anyone give me solution for this?

+1  A: 

To start the standard PDF viewer you can simply start an external process:

Process proc = new Process( );
proc.StartInfo = new ProcessStartInfo( ) {
    FileName = path //put your path here
};
proc.Start( );

To show the file inside your application you have to use the pdf viewer as an ActiveX-component.

PVitt
how will i specify the path of the file if that pdf file resides inside the solution of the project?
Rohit
ok...thank u..its working
Rohit
easier: Process.Start(pdffile);
A: 

You have many options:

anivas