Winform can't open pdf using webbrowser solution

  Recently, there is a project that needs to open the pdf file of the network path in winform. I naturally think of webbrowser, but what I didn’t expect is that there is no problem at all when debugging on my computer, but when it comes to other colleagues’ computers, there are various problems. Some can't be opened, and some display pages can't be displayed. Baidu has been on it for a long time. The solution is to install a pdf reader and set it as the default open program for pdf, but. But still didn't solve my problem. There is really no way I want to use the webbrowser. I look for another component to see if I can. I finally found it, called pdfview4net and it was successful, but, but again. This thing has a watermark when it is opened. Ask the manager, and a word will definitely not work. Back to think of a way. Finally, the hard work paid off, or the google solution let me find it. come and see

https://stackoverflow.com/questions/16277127/webbrowser-control-not-showing-pdf-anymore

And here is the answer of the great god, which is the answer I want.

The compilation platform is set to the X86 platform, which perfectly solves the problem.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325309684&siteId=291194637