如何在WPF窗口中显示PDF文件 [英] How to display PDF file in WPF window

查看:323
本文介绍了如何在WPF窗口中显示PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我正在使用 VS 2017 和Adobe Acrobat Reader DC.我想创建VB WPF窗口表单来显示PDF文件.我在C#中看到了一些示例,但是代码无法转换海峡.某些机构可以在VB中共享示例代码以显示PDF文件吗?

I'm using VS 2017 and Adobe Acrobat Reader DC. I would like to create VB WPF window form to display PDF file. I saw some samples in C# but code cannot convert strait. Can some body share sample code in VB to display PDF file?

谢谢.

推荐答案

AxAcroPDFLib.AxAcroPDF API

AxAcroPDFLib.AxAcroPDF api

http://://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context = Acrobat10_SDK_HTMLHelp& file = IAC_API_OLE_Objects.103.167.html

您可以尝试使用LoadFile()方法或src属性;请参考以下主题.

You can try to use LoadFile() method or src property; Please refer the following thread.

在Vb.net中加载PDf文件应用程序

https://www.youtube.com/watch?v=lVU7zQdpuSg

注意:此回复包含对第三方万维网站点的引用. Microsoft为方便您而提供此信息. Microsoft不控制这些站点,也没有测试在这些站点上找到的任何软件或信息;所以, Microsoft无法对在此找到的任何软件或信息的质量,安全性或适用性做出任何陈述.使用Internet上发现的任何软件都存在固有的危险,Microsoft提醒您确保自己 在从Internet检索任何软件之前,应完全了解风险.

Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

最好的问候,

鲍勃


这篇关于如何在WPF窗口中显示PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆