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.
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