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
BedrockMission!

Learn More

View all

Sign in to view all badges

importData - Signature - ReaderExt

Avatar

11-02-2009

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

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

11-02-2009

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.

Avatar

12-02-2009

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