To be able to load a data file into the system programmatically you wil have to certify the PDF. When you certify you have to choose the allow scripting option. Once that is done each user will have to put your certificate that you used to certify into their trusted store.
Just putting the code into a trusted function is not enough.
Thank you for your advice. I'm new to all this. Hope you could direct me to certain documentation where I could learn of how to create cert for PDF and also deploy it to the user. In this case I'm the user. I'm testing this with 2 different laptops.
I just remembered. I better inform you this as well so you can see the real picture.
Desktop - OS / Vista Home
I created the PDF form using Acrobat Livecycle ES 8.2, Then I opened the form in Acrobat Professional 9.0 to enable the save features. Then I open in Reader 9 to make I will be able to save data. Successful
Laptop - OS / XP Professional
I have vb.net that calls the js passing xml as parameter.