Expand my Community achievements bar.

Button 'SaveAs'

Avatar

Level 2
I have been trying to setup a pdf to save to a predefined path with a click on a button.



I tried this code :



var aDocs = app.activeDocs;

var myDoc = aDocs[0];

myDoc.saveAs("C:\\" + Title.rawValue + ".pdf");



But i have this error :



myDoc has no properties

3:XFA:formulaire1[0]:#subform[0]:Bouton1[0]:click



Thanks in advance...
19 Replies