Display a PDF in a Windows Form.

M

Mr. Magic

I've got a kiosk program that displays information that runs unattended. I
need to have the ability to put PDF up on the screen. I have other stuff on
the screen that needs to still be displayed.

Adobe opens as a new window with menus and whatnot so this is not
acceptable.

Does anybody know of a way to display a PDF in a winform? I don't need any
of the menus or stuff like that - just display the pdf. It would also be
nice if I could programmatically control what page it's displaying so I
could display multiple pages in succession.

TIA - Jeff.
 
J

Jeff Johnson

I've got a kiosk program that displays information that runs unattended. I
need to have the ability to put PDF up on the screen. I have other stuff
on the screen that needs to still be displayed.

Adobe opens as a new window with menus and whatnot so this is not
acceptable.

Does anybody know of a way to display a PDF in a winform? I don't need any
of the menus or stuff like that - just display the pdf. It would also be
nice if I could programmatically control what page it's displaying so I
could display multiple pages in succession.

Check out the ActiveX control whose ProgID is AcroPDF.PDF. It's in
AcroPDF.dll.
 
M

Mr. Magic

When I try to run it, I get a Class Not Registered message. When I looked at
how to register it, which involves using aximp.exe, when I run aximp it
tells me AxImp Error: Did not find a registered ActiveX control in
'c:\windows\syswow64\macromed\flash\flash10e.ocx'.

Any help would be appreciated.

TIA - Jeff.
 
M

Mel Weaver

There are different ways to do this, but I found using the webbrowser
component on a window form very easy.
Just set the webbrowser's url to the complete file name .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top