求问:c#winform中怎么样使得一个窗口显示文档PDF内容

.Net技术 码拜 9年前 (2016-03-10) 1669次浏览
求高手解惑,或给一个范例编码程序!
解决方案

10

你得用插件吧

20

private AxAcroPDFLib.AxAcroPDF axAcroPDF1;
this.axAcroPDF1 = new AxAcroPDFLib.AxAcroPDF();
this.axAcroPDF1.Dock = System.Windows.Forms.DockStyle.Fill;
this.axAcroPDF1.Enabled = true;
this.axAcroPDF1.Name = “axAcroPDF1”;
this.axAcroPDF1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject(“axAcroPDF1.OcxState”)));
axAcroPDF1.LoadFile(DownloadedFullFileName);
axAcroPDF1.Visible = true;
stackoverflow上的答案。兄弟你得学会去英文世界搜索答案。 csdn上找不到靠谱的答案的。
bing搜索, winform load pdf。你会得到你想要的。

5

http://stackoverflow.com/questions/549504/net-open-pdf-in-winform-without-external-dependencies
采用楼上的方法,在bing上搜到的

15

工具箱–右键–选择项–COM组件–Adobe PDF Reader
至于那个什么吗?

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明求问:c#winform中怎么样使得一个窗口显示文档PDF内容
喜欢 (0)
[1034331897@qq.com]
分享 (0)