These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Running document script from VB6 OLE appilcation.

csearl
Registered: Aug 10 2006
Posts: 28

I'm designing a form using LiveCycle Designer 8. The form has a javascript variable ("jsMain") with several functions specific to the document.
 
I am hosting the form using VB6 and have successfully created several OLE AcroEx.xxx interfaces, including the jsObject. It also can use some folder level scripts.
 
The problem I'm having is getting my VB6 application run the script function in my document variable script "jsMain.function()".
 
Any ideas no how to do this?
 
Thanks.

My Product Information:
Acrobat Standard 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I hope that "jsMain.function()" is just meant to convey the idea of a function and your don't really have a function named "function". This is a really, really bad name for a function since it happens to be a JavaScript keyword.

Anyway, have you tried disclosing the document? Are you accessing the the "jsMain" variable through "xfa.form"? Can you post the form somewhere we could take a look at it?

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script