通过C#.NET应用程序的桌面查看PDF [英] View PDF through C# .Net desktop App

查看:174
本文介绍了通过C#.NET应用程序的桌面查看PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我可以通过一个C#.NET应用程序的桌面查看PDF。我想创建一个应用程序使用Visual Studio 2008

I want to know how I can view a PDF through a C# .net desktop App. I am trying to create a application to view PDF using visual studio 2008

有一个名为iText的(iTextSharp的)一个PDF阅读器库。但它并不能帮助我

There is a pdf reader libraries called iText(iTextSharp). But it didn't help me

推荐答案

您可以在应用程序托管,即Web浏览器控件,这将允许用户查看PDF文档,如果他们安装了读卡器。

You can host a ie web browser control in your application and that will allow the user to view a pdf if they have a reader installed.

如果你告诉我,您是否使用WPF或WinForms的我可以提供一个例子。

I can provide an example if you tell me whether you are using WPF or WinForms.


  1. WebControl的拖动到你形成

  1. Drag WebControl on to you form

在代码中设置
路径

Set the path in code

完成后按F5

这篇关于通过C#.NET应用程序的桌面查看PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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