Examples (OUTPUT EXPORT command)

Export to Word with Minimum Specifications

OUTPUT EXPORT
  /DOC DOCUMENTFILE='/mydocs/myresults.doc'.

All output in the designated Viewer document is exported to the specified file in Word (RTF) format. If the file already exists, the contents are overwritten.

Export Named Viewer Document to New Sheet in Existing Excel Document

OUTPUT EXPORT NAME=Region1Results
  /XLS DOCUMENTFILE='/mydocs/ResultsByRegion.xls'
   OPERATION=CREATESHEET SHEET='Region 1'.
  • Contents of the Viewer document named Region1Results are exported to the specified Excel file.
  • If the Excel file already exists, a new worksheet named Region 1 is added to the file. If a worksheet with that name already exists in the file, the contents of that worksheet are overwritten.
  • If the Excel file does not exist, a file with the specified name is created, and a worksheet named Region 1 is added to the new file.