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

VB6 and Javascript

csearl
Registered: Aug 10 2006
Posts: 28

Thom,
Thanks for the help on that VB6/javascript question. Your suggestion worked on the first try! I made one slight change to make the code more generalized. I resolved the following node name:
"$form.#subform[0].jsMain", which is what worked the first time.
 
This is the VB6 code that worked:
FormVariableName = "$form.#subform[0].jsMain"
Set objNode = jsObject.xfa.resolveNode(FormVariableName)
ReturnValue = objNode.myInsertPage(sformname, lpagenumber)
  
I'm curious whether this is needed with VB.Net, too. Maybe the type handling is smarter in .Net.
 
What Adobe needs to do is extend the AcroExch interface object to include the XFA DOM - with events!.
 
Again, thank you very much.

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I'm glad it worked out. This was the first question I've seen on this topic, "useing IAC for XFA access".

I think that the .Net solution is exactly the same.

It's unlikely that the IAC will improve in any way. It is what it is. But keep wishing, maybe Adobe will decide to improve it for XFA specific stuff. You never know.

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