View PDF through C# .Net desktop App

怎甘沉沦 提交于 2019-12-23 19:29:44

问题


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

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


回答1:


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.

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

  1. Drag WebControl on to you form

  2. Set the path in code

  3. Done Press F5




回答2:


I'm not sure what netbeans has to do with anything, but take a look at this question here How to render pdfs using C#

Essentially you need to get a 3rd party PDF viewer or write one yourself. There are quite a few around and would probably take a look at something like PDFViewForNet




回答3:


iText isn't a PDF viewer.

If you want to read PDF documents in your application there are couple of Open Source PDF Libraries.



来源:https://stackoverflow.com/questions/4882549/view-pdf-through-c-sharp-net-desktop-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!