Question

In my c#.net application I just want to open a pdf or document in a win form. Is it possible to open a Pdf reader or word processor through winform?

Was it helpful?

Solution

            Process mydoc= new Process();

            mydoc.StartInfo.FileName   = "path to pdf or word file c:\a.doc";

            mydoc.Start();

OTHER TIPS

This is probably what you are after:

Process.Start("myfile.pdf");

You can read about it in the MSDN http://msdn.microsoft.com/en-us/library/53ezey2s(v=vs.80).aspx

You could do this trick using the WebBrowser control:

 WebBrowser1.Navigate("file:///C:/file.pdf")
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top