Fog Creek Software
g
Discussion Board




WinForms PDF Viewer for .NET?

Hi All,

Does anyone know of a PDF Viewer component for WinForms in .NET? There are plenty of PDF creation/manipulation components, but I can't seem to find any that have a WinForms PDF viewer.

Ideally it would allow you to programatically control the current page, etc. My thinking is that this would allow me to create a nice HTML-based report system when used with an HTML-PDF conversion library. We use a lot of tables in our reports, and none of the typical report systems natively support tables. Using the browser component won't work because we need to support zooming/magnification.

  --Josh

JWA
Thursday, April 1, 2004

Acrobat Reader ships with a COM component (it's the thing that gets loaded into a browser when you click a PDF).  There are some programmatic controls, but I haven't looked at it in a while to see if it has what you need.  The ProgID is "PDF.PdfCtrl.1".

I am using it to programmatically print pdf files and it works great.

Lou Franco
Thursday, April 1, 2004

Thanks Lou. I can't use that because of the advertisements they put in, and I'd really prefer that it was something that I could redistribute along with my app.

I've seen that it appears Pegasus's ImagXpress also can display PDFs, which would be close to perfect other than the runtime royalties they charge.

  --Josh

JWA
Thursday, April 1, 2004

*  Recent Topics

*  Fog Creek Home