View PDF through C# .Net desktop App

yohan.jayarathna picture yohan.jayarathna · Feb 3, 2011 · Viewed 7.4k times · Source

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

Answer

Daniel picture Daniel · Feb 3, 2011

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 Drag WebControl on to you form

  2. Set the path in code set the path in code

  3. Done Press F5