Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

importData - Signature - ReaderExt

Anonymous
Not applicable
Hi,



I try to use xfa.host.importData("c:\\test.xml")

to import xml-data into my document (click event in a button object)



this works fine in acrobat if the document is signed.



in order to use this function in the adobe reader I've to use reader extensions in order to enable the import function,

but if I do so the xfa.host.importData("c:\\test.xml") the script throws an error, even in acrobat.

Why?

regards

Johannes
2 Replies
pguerett
Level 10
Level 10
To be able to import a file programmatically you have to certify the document (a form of signing). If the form is not signed then you will only be able to use xfa.host.importData() and a dialog will come up and allow the user to choose the file to import. To be able to certify a Reader Extended form digital signatures must be enabled through Reader Extensions as well.
Anonymous
Not applicable
Hi Paul,

thx,

works out by clicking on the button, by using a digital signature field on the form.



nevertheless I get an error if I put the script on the initialize-event



form1::initialize - (FormCalc, client)

xfa.host.importData("C:\\test.xml");



regards

Johannes