Link to home
Start Free TrialLog in
Avatar of dryale
dryale

asked on

Displaying PDF inside a VB Form

My eventuall goal is to display PDFs on a vb form.  To begin, I'm using an example which I found in the Adobe SDK.  Without going into the code immediately, upon execution, I receive the following error:

Run-time error '429':
ActiveX component can't create object

The debugger is referencing the following line of code:
Set AcroExchApp = CreateObject("AcroExch.App")

Any suggestions?
Avatar of Arragorn
Arragorn
Flag of United States of America image

Hi dryale,

Normally that error means simply that it can't find the object you are trying to create ("AcroExch.App") and can be solved by running regsvr32 to make sure that a reference to the object is placed in the Registry.  Are you sure that the objects name ends with .app extension. This is a new one for me I'm used to the objects ending with a .dll extension.

Avatar of dryale
dryale

ASKER

The object name does end with .app.  The code snipet above was copied directly from Adobe SDK samples.  I have not installed the entire Adobe product, just the free: Adobe Reader.  I'm wondering if this makes a difference?  If so, does this mean I would only be able to distribute the application to those who have the full Adobe product?
ASKER CERTIFIED SOLUTION
Avatar of vinnyd79
vinnyd79

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dryale

ASKER

Yes, i would view it in the browser, however, I have to view it in a form, because I need to add a few listboxes and stuff at the top.
But the webbrowser control is a control that goes on your form so you can still add your listboxes and stuff.
Avatar of dryale

ASKER

Thank you very much vinnyd79.  This will work great.