I'm trying to use the Acrobat type library 10 in a visual basic 6 source code on my Windows 7 64bit.
On the web I found many examples, and specifically i'm trying this one:
'IAC objects
Dim gAvDoc As Object
Dim oPagesSrc As Long
'variables
bleFound = False
ioutfile = FreeFile
'hard coding for a PDF to open, it can be changed when needed.
gPDFPath = "C:\Documents and Settings\....." ' FILL IN YOUR PATH HERE
'Initialize Acrobat by creating App object
Set gApp = CreateObject("AcroExch.App")
gApp.Hide
'Set PDDpc object
Set gPDDoc = CreateObject("AcroExch.PDDoc")
But running this code I always get an error message: "the component can't create object"
for line:
Set gApp = CreateObject("AcroExch.App")
Really I don't know how can I fix....
Many thanks
Really I need to do some operations like searching text inside the file, converting in text format and splitting file.... but actually my critical problem is that I can't create an istance of the object using the active-x!
I really don't know what the problem is.... if my system is 64bit or other.... but im not able to make it work!!!! ![]()
The 64-bit system should not prevent you from using the ActiveX.
But it is clear that VB6 is not the best choice if you are starting a new project. And Reader is not sufficient.
If you simply want to check if the ActiveX works.
Select the (Adobe .. Library) Reference/Component : this should put the AcroPDF element in the toolbox
Drag the AcroPDF from the toolbox to your form
Code to Load a file : AcroPDF1.LoadFile "yourFile.pdf"
@M Marden:
I will try your solution! But...
@everybody
... is not so important 4 me now to use acrobat cause I've try fox.it reader activex and it works great with all my system!!! VB, 64bit... no problems at all.
Easy to use, very fast and no help needed.
Thanks bye ![]()
North America
Europe, Middle East and Africa
Asia Pacific