Answered
I want to create a new report by method "new Report ()", write some text then save it to C drive, follow are my codes:
trustedNewDoc = app.trustedFunction( function ()
{
var rep = new Report();
rep.size = 1.6;
rep.color = color.blue;
rep.writeText("Today is Oct 15th, 2011.");
rep.open("Today");
rep.save("/c/temp/Date of Today.pdf");
})
trustedNewDoc();
When I run the codes in JavaScript Debugger, the new document "Today.pdf" is created successfully, but the "save" method fails, here is an error message:
GeneralError: Operation failed.
Report.save:8:Console undefined:Exec
Could you help to see what the cause is? Your help is really appreciated!
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com