PRINT reportname ARRANGE clause WHERE clause .. ORDER BY clause .. OPTION GIF
Note: Each additional OPTION parameter must be separated by the pipe | symbol.
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:
BACKGROUND_COLOR indicates the color to be used as background color of all pages of report.
Values:
BACKGROUND_TYPE specifies the way background image has to be displayed in the GIF file.
Values:
BACKGROUND_FILE stores the image file name that is to be used as background image of all pages of report.
MONOCHROME specifies whether bmp-file produced are color or monochrome images.
Values:
PIXELFORMAT specifies the pixel format of the bmp-file (bits/pixel).
Values:
SCALEX double; Scaling factor for the width of the exported page. Use 1 for actual width.
SCALEY double; Scaling factor for the height of the exported page. Use 1 for actual height.
OPEN specifies whether the report should be opened after it is generated.
Values:
EMAIL specifies the report output (defined as FILENAME filename.ext ) to be sent via e-mail as an attachment.
Values:
See additional options when EMAIL value is set to ON. EMAIL SET ON
Example:
Example 01 (To print Invoice as GIF file)
PRINT Invoice WHERE TransID = 1068 +
OPTION GIF +
|FILENAME Invoice1068.GIF +
|SHOW_CANCEL_DIALOG OFF +
|BACKGROUND_COLOR WHITE +
|MONOCHROME OFF +
|PIXELFORMAT 32 +
|SCALEX 1 +
|SCALE 1 +
|OPEN ON
RETURN
For more examples and templates, please refer to R:Docs (version 2.5 or higher).