I have the following script on a button in my LiveCycle form.
What I need to do is save a file with a unique name to a directory.
I seem to be having trouble at the line that says
//Use the VB Script FileSystemObject to create a text file for outputting the data.
var objFSO;
objFSO=new ActiveXObject ("Scripting.FileSystemObject");
any ideas?
I'm having trouble copying/pasting the script, so that's why the picture.
Gretchen
Views
Replies
Total Likes
Hi,
ActiveXObject is not a method in LC Designer/XFA Forms (eg does not appear in the XFA Specification).
Automatically/silently saving a form to a set directory, with a set name would be considered a security issue by Adobe. You would need a Trusted Function, which would be in a JavaScript file (.js), within a set Acrobat application folder. This can make it tricky to deploy and maintain.
There is a long thread here with examples: http://forums.adobe.com/message/2267973#2267973. Also do a search on the forums for trusted functions.
Hope that helps,
Niall