ETXT
Top  Previous  Next

   
PRINT reportname ARRANGE clause WHERE clause .. ORDER BY clause .. OPTION ETXT

PRINT_OPTION_ETXT

Note: Each additional OPTION parameter must be separated by the pipe | symbol.


The Report Emulation Text File (ETXT) option allows you to print the exact report as plain readable text including all bands, such as Report Header, Page Header, Break Headers, Break Footers, Page Footers and Report Footers, if any.


OPTION Parameters:

FILENAME specifies the full path and filename. If no path is defined, output will be saved in the current working directory.

SHOW_CANCEL_DIALOG
specifies whether to suppress cancel dialog box during the print process.

Values:
ON (default)  
OFF  

OPEN specifies whether the report should be opened after it is generated.

Values:
ON  
   OFF  

EMAIL specifies the report output (defined as FILENAME filename.ext ) to be sent via e-mail as an attachment.

Values:
ON  
OFF  

See additional options when EMAIL value is set to ON. EMAIL SET ON


Example:    
   
Example 01 (To print columnar report as Emulation Text - ETXT file)

PRINT ColumnarReport +
OPTION ETXT +
|
FILENAME ColumnarReport.TXT +
|
SHOW_CANCEL_DIALOG OFF +
|
OPEN ON
RETURN


For more examples and templates, please refer to R:Docs (version 2.5 or higher).