开发者

View PDF through C# .Net desktop App

开发者 https://www.devze.com 2023-02-08 11:13 出处:网络
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

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 c开发者_StackOverflow社区alled iText(iTextSharp). But it didn't help me


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

    View PDF through C# .Net desktop App

  2. Set the path in code

    View PDF through C# .Net desktop App

  3. Done Press F5


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


iText isn't a PDF viewer.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消