PRINT reportname ARRANGE clause WHERE clause .. ORDER BY clause .. OPTION TIFF
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 BMP 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 tiff-file produced are color or monochrome images.
Values:
MULTIPAGE specifies the output report to one multi-page file or one file per page.
Values:
PIXELFORMAT specifies the pixel format of the tiff-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.
COMPRESSION When an image is loaded, this parameter indicates the compression used by the image. When saving in image, the parameter may be set to specify which compression method to use.
Values:
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 TIF file)
PRINT Invoice WHERE TransID = 1068 +
OPTION TIFF +
|FILENAME Invoice1068.TIF +
|SHOW_CANCEL_DIALOG OFF +
|BACKGROUND_COLOR WHITE +
|MONOCHROME OFF +
|MULTIPAGE OFF +
|PIXELFORMAT 32 +
|SCALEX 1 +
|SCALE 1 +
|COMPRESSION NONE +
|OPEN ON
RETURN
For more examples and templates, please refer to R:Docs (version 2.5 or higher).