Close print or export file

20% Command group 20% Flag affected 20% Reversible 20% Execute on client 20% 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