New Forum | Previous | Next | (P-PDF) Developers
Topic: Acrobat Application Error with OLE
Conf: (P-PDF) Developers, Msg: 33326
From: Brigitte Jacob
Date: 1/22/2002 07:26 PM
I need help concerning Acrobat as OLE Automation Server.
I want to programmatically print an embedded pdf document in Lotus Notes. The document prints correctly, but when I try to close the document with avdoc.close, I get an application error.
The program code is the following:
set AcroExchApp = CreateObject("AcroExch.App")
set acroExch = obj.activate(true)
set avDoc = AcroExchApp.getActiveDoc
set pddoc = avdoc.getPDDoc
iNumPages = PDDoc.GetNumPages
AVDoc.printPagesSilent 0, iNumPages - 1, 2, True, true
set AVDoc = nothing
set PDDoc = nothing
set acroExchApp = nothing
The problem is not in the printing part. I tested the program without printing the document. Just opened the document and closed it, and then got the application error.
Does anybody have an idea?