GIF
Top  Previous  Next


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

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

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  

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

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

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:
ON  
OFF  


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

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

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:
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 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).