Opening PDF or Doc In a winform
-
08-12-2019 - |
문제
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
?
해결책
Process mydoc= new Process();
mydoc.StartInfo.FileName = "path to pdf or word file c:\a.doc";
mydoc.Start();
다른 팁
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")
제휴하지 않습니다 StackOverflow