Avatar

Correct answer by
Level 10

Yes you can launch the xml file (like the FDF) and it will load th eform as well. To see what you have to do .....put a button on your form and add the code:

xfa.host.exportData()

to the click event. Now render your form, fill it out, and hit the button. It will ask you for a file name (it will also put an extension of XDP onto the file). This is the xml data file (named as an xdp file). Open it in an xml editor and you will see near the bottom the reference to the template. Now if you launch the xdp file it will open Acrobat and launch your form and merge the data onto the form. Note, if Designer was installed after Acrobat, then the XDP extension is registered to designer (it thinks this is a native template file) and you will get an error. Make sure the xdp extension is registered to Acrobat.

For the saving, you can programmatically click the submit button whether it is visible or not.

Paul

View solution in original post