Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Displaying PDF inside a VB Form

Posted on 2004-05-03
6
Medium Priority
?
925 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 total points
ID: 10978179
You could try the Webbrowser control (Microsoft Internet Controls).

WebBrowser1.Navigate2 "C:\Somefile.pdf"
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

636 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