tags:

views:

3443

answers:

4

Does anyone knows how to display pdf file in winform? i am using c#. i don't want to use activex. maybe some one know good component or library. thanks

+1  A: 

Have a look at PDFTrons PDF.NET

Conrad
A: 

We did this by using the WebBrowser control (System.Windows.Forms.WebBrowser) and letting it navigate to the pdf file which is on the users computer. We were generating the PDFs dynamically and saving them into the temp directory and then pointing the WebBrowser control at that temp file. Works great. -Jeff

Jeff Widmer
+1  A: 

I have been quite happy with the commercial PDFRasterizer.NET library.

For a free (gratis and open) option, you could try to let Ghostscript do the rendering, by invokings functions from the DLL using P/Invoke. Quite a few articles and some (partially complete) wrapper libraries turn up when doing a Google search on C# and Ghostscript (sorry, but noobs are only allowed one hyperlink per post).

@Shoban: AFAIK iTextSharp does not provide any PDF rendering capabilities.

Jørn Schou-Rode