在Windows窗体C#中使用pdf文件加载 [英] Load pdf file using in windows form C#

查看:213
本文介绍了在Windows窗体C#中使用pdf文件加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Webbrowser控件将pdf文件加载到本地计算机中以进行打印预览,效果很好,但是问题是如果未安装Adobe Reader,则webbrowser控件无法打开文件进行预览.安装了Foxit阅读器,然后Webbrowser控件也不支持.我无法访问本地计算机注册表来查找已安装的应用程序.因为还为本地用户安装了该应用程序.

如果Webbrowser无法使用Adobe Reader打开文件,是否可以显示警报.
建议任何选项以显示pdf文件的预览.

I tried to load pdf files for print preview in local machine using Webbrowser control.It works fine.But problem is if adobe reader is not installed webbrowser control doesn''t open the file for preview.I mean say for example if Foxit reader is installed,then also the webbrowser control doesn''t support.I can''t access local machine registry to find installed application.Because application is installed for local users also.

Is it possible to show alert if webbrowser cant open the file with adobe reader.
Suggest any options to show a preview of pdf files

推荐答案

尝试使用从PDF转换的HTML.搜索它: http://bit.ly/JUPgLO [ ^ ].

—SA
Try to use HTML converted from PDF. Search for it: http://bit.ly/JUPgLO[^].

—SA


这篇关于在Windows窗体C#中使用pdf文件加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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