Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing Acrobat 9.0 Pro Menu Using VB.NET

Status
Not open for further replies.

deepgrewal22

Instructor
May 2, 2005
108
I would like to gain access to the application object for Acrobat. I have a custom Acrobat form (pdf) which I would like to access a menu item from via VB.NET. The form will be deployed on multiple PCs which may have various versions of Acrobat installed. Therefore, the code must not be version specific. I am using the code below, but it is not functioning properly. I am unable to access the menu item which has been defined as, and is indeed named, "AttachCameraFiles" (in the underlying JAVA script).

Code:
Dim acrobat As Object
acrobat = CreateObject("AcroExch.App")
acrobat.MenuItemExecute("AttachCameraFiles")
System.Runtime.InteropServices.Marshal.ReleaseComObject(acrobat)

Any suggestions would be greatly appreciated, as usual. Thanx.


Deep Grewal
"Microsoft Works" - oxymoron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top