For security reasons, if you provide the first parameter, the exportData method executes only when performed on certified documents. If you do not provide the first parameter, the document does not need to be certified and the user is prompted to provide a location and file name.
Reference_Syntax.exportData( [ STRING param1 [, BOOLEAN param2 ] ])
param1 (Optional)
Specifies the location and file name of the file where the data will export. If you omit this parameter, a dialog box opens to let the user select the file manually.
param2 (Optional)
Note:
Host Model

exportData