CreateObject("AcroExch.App") not working for me

Hi all,

I try to make the CreateObject(“AcroExch.App”) working but I always get an error “Cannot create automation object”.

So, to get something working, I use the very not clean solution via shell:

result = Shell("C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe " & filename,1)

But I still want to make the CreateObject working.

I’ve tried to read all posts on this subject but didn’t find the answer of my problem.

any help or advice is very welcome

luc

Subject: CreateObject(“AcroExch.App”) not working for me

AcroExch.App is not an objectuse CreateObject(“AcroExch.Document”)

for details look into registry Editor

Subject: RE: CreateObject(“AcroExch.App”) not working for me

Thanks for answering Anil !

But your CreateObject(“AcroExch.Document”) is not working for me… I get the same error

My PC is on Win XP. Domino is on iSeries.

any idea ?

thanks for your help.

luc

Subject: RE: CreateObject(“AcroExch.App”) not working for me

are you making it on server or client?

look into Registry Editor for th proper class. If not present then won’t work.

if you have class on the server then u may have to use agents to run on the server

Subject: RE: CreateObject(“AcroExch.App”) not working for me

Hi Anil !

my database is on server. (iseries)

For now, I used CreateObject(“Word.Application”) and CreateObject(“Excel.Application”) to open Word document and it works fine.

I just wanted to do the same with pdf document.

By making a search in my registry, I found a entry “AcroExch.Document” in […]Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.pdf\OpenWithProgids

any idea ?

thanks

luc

Subject: RE: CreateObject(“AcroExch.App”) not working for me

correction:of course it is too open word and Excel document

Subject: RE: CreateObject(“AcroExch.App”) not working for me

I had to install Acrobat 4.0 (full install and Distiller 4.0) to make this work. After installing that you can try to upgrade.

Subject: CreateObject(“AcroExch.App”) not working for me

Here’s a suggestion: Put a pdf file in your c:\ root directory, call it ‘testpdf.pdf’ then put this code in a button and try running it:


Dim AdobeAcrobat as Variant

Dim AdobeDoc as Variant

Set AdobeAcrobat = CreateObject(“AcroExch.App”)

Set AdobeDoc = CreateObject(“AcroExch.PDDoc”)

AdobeDoc.Open(“c:\testpdf.pdf”)

AdobeDoc.OpenAVDoc “c:\testpdf.pdf”

AdobeAcrobat.Show

AdobeAcrobat.Maximize True


you should see testpdf.pdf appear in an instance of the Adobe application… good luck!