Group:  Microsoft Access ยป microsoft.public.access.interopoledde
Thread: Using the Acrobat object module

Using the Acrobat object module
Leon 2/12/2007 8:37:01 PM
I'm using the following subroutine in a Microsoft Access VBA module, which
successfully opens a PDF document that is on the local hard drive:

Private Sub OpenAcrobat()
Dim AcrApp As AcroApp, AcrDoc As AcroAVDoc
Dim varBool As Boolean
Set AcrApp = CreateObject("AcroExch.App")
Set AcrDoc = CreateObject("AcroExch.AVDoc")
AcrApp.GetActiveDoc
varBool = AcrDoc.Open("c:\CBS User Guide.pdf", "sdfsdfsdf")
AcrApp.Show
Set AcrApp = Nothing
Set AcrDoc = Nothing
End Sub

However, I have not been successful at opening the document to a specified
bookmark. I would greatly appreciate any hints on the correct approach as
well as any feedback on the code above. I created an AcroExch.PDBookmark
object, but I don't seem to be using it correctly. I have studied the Acrobat
IAC-API reference and tried different approaches until my brain hurts. I
have correctly set the library refence and can see all of the object
references in the object browser.

Anyone have experience with this?


Home | Search | Terms | Imprint
Newsgroups Reader