Solved

Displaying PDF inside a VB Form

Posted on 2004-05-03
6
894 Views
Last Modified: 2007-12-19
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?
0
Comment
Question by:dryale
  • 3
  • 2
6 Comments
 
LVL 4

Expert Comment

by:Arragorn
ID: 10977981
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.

0
 

Author Comment

by:dryale
ID: 10978033
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?
0
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 50 total points
ID: 10978179
You could try the Webbrowser control (Microsoft Internet Controls).

WebBrowser1.Navigate2 "C:\Somefile.pdf"
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:dryale
ID: 10978211
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.
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 10978235
But the webbrowser control is a control that goes on your form so you can still add your listboxes and stuff.
0
 

Author Comment

by:dryale
ID: 10978672
Thank you very much vinnyd79.  This will work great.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now