Close print or export file

Command group Flag affected Reversible Execute on client Platform(s)
Report destinations NO NO NO All

Syntax

Close print or export file

Description

This command closes the current print or export file. You use it after the data has been written to the file. If the file is left open, subsequent data printed to the file is added to the end of the earlier data.

Example

Send to file
Calculate lPrintFileName as con(sys(115),'myPrintedReport.txt')
Set print or export file name {[lPrintFileName]}
Set report name rMyReport
Print report
Close print or export file