RTF
Top  Previous  Next


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

PRINT_OPTION_RTF

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:
ON (default)  
OFF  

BACKGROUND_FILE stores the image file name that is to be used as background image of all pages of report.

BACKGROUND_TYPE
specifies the way background image has to be displayed in the RTF file.

Values:
TILE  
TOPLEFT  
TOPCENTER  
TOPRIGHT  
CENTERLEFT  
CENTER  
CENTERRIGHT  
BOTTOMLEFT  
BOTTOMCENTER  
BOTTOMRIGHT  

BACKGROUND_COLOR
indicates the color to be used as background color of all pages of report.

Values:
AQUA  
BLACK  
BLUE  
CREAM  
DARK GRAY  
FUCHSIA  
GRAY  
GREEN  
LIME  
LIGHT GRAY  
MAROON  
MEDIUM GRAY  
MINT GREEN  
NAVY  
OLIVE  
PURPLE  
RED  
SILVER  
SKY BLUE  
TEAL  
WHITE (default)  
YELLOW  

INCLUDE_LINES specifies whether lines on the report should be included in the exported file.

Values:
ON  
OFF  

INCLUDE_SHAPES
specifies whether shapes on the report should be included in the exported file.

Values:
ON  
OFF  

INCLUDE_RICHTEXT
specifies whether contents of the RichText objects on the report should be included in the exported file.

Values:
ON  
OFF  

INCLUDE_IMAGES specifies whether Images on the report should be included in the exported file.

Values:
ON  
OFF  

IMAGE_FORMAT specifies the Linked image file format for image controls used in the report when INCLUDE_IMAGES option is set to ON.

Values:
GIF  
JPG  
BMP  

JPEG_QUALITY specifies the quality of the JPEG Image when INCLUDE_IMAGES is set to ON and IMAGE_FORMAT is set to JPG.

Values:
1-100  

IMAGE_DPI specifies the depth of image as dots per inch.

Values:
-1  

PIXELFORMAT
specifies the pixel format of the image-file (bits/pixel).

Values:
1 : 1bit  
4 : 4bit  
8 : 8bit  
15 : 15bit  
16 : 16bit  
24 : 24bit  
32 : 32bit  

GRAPHIC_DATA_IN_BINARY specifies whether graphic data is to be encoded in binary format.

Values:
ON (default)  
OFF  

Set to ON to encode graphic data in binary format. If OFF, graphic data is encoded in hexadecimal format.


OPTIMIZATION
specifies the type of encoding of the RTF document.

Values:
POSITIONAL_ACCURACY (default)  
EASE_OF_EDITING  

Resulting RTF document can be either optimized for positional accuracy (meaning that the placement of the objects will be as close as possible to a printed report), or for ease of editing (meaning that everything is treated as simple text and it is much easier to edit the file at the expense of aesthetics).

Set OPTIMIZATION EASE_OF_EDITING if you wish to easily modify the resulting RTF document.

TITLE specifies the title of the report.

SUBJECT specifies the subject of the report.

AUTHOR specifies the author of the report.

KEYWORDS stores the list of keywords used in the report. Specify a list of keywords for the document that should be encoded as the Keywords Meta content in RTF document property summary.

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 invoice report as RTF document)   
PRINT Invoice WHERE TransID = 1068 +
OPTION RTF +
|
FILENAME Invoice1068.RTF +
|
SHOW_CANCEL_DIALOG ON +
|
BACKGROUND_FILE NONE +
|
BACKGROUND_TYPE CENTER +
|
INCLUDE_LINES ON +
|
INCLUDE_SHAPES ON +
|
INCLUDE_RICHTEXT ON +
|
INCLUDE_IMAGES ON +
|
IMAGE_FORMAT JPG +
|
JPEG_QUALITY 100 +
|
IMAGE_DPI -1 +
|
PIXELFORMAT 32 +
|
GRAPHIC_DATA_IN_BINARY ON +
|
OPTIMIZATION POSITIONAL_ACCURACY +
|
TITLE Customer Invoice +
|
SUBJECT Sales Order +
|
AUTHOR Accounting Team of Consolidated Computer Company +
|
KEYWORDS Invoice +
|
OPEN ON
RETURN



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