PRINT-IMAGE

Syntax

PRINT-IMAGE[image_name]position [TYPE={image_type_lit|_var|_col}] [IMAGE-SIZE=(width_num_lit|_var|_col,height_num_lit |_var|_col)] [SOURCE={file_name_txt_lit|_var|_col}]

Note:

If TYPE, IMAGE-SIZE, and SOURCE are not defined in PRINT-IMAGE, they must be defined in DECLARE-IMAGE.

Description

Prints an image.

The PRINT-IMAGE command can be placed in any section of a report with the exception of the SETUP section. The image file pointed to can be any file of the proper format.

PRINT-IMAGE can be used without referencing a named image if all required attributes for the DECLARE-IMAGE are supplied in addition to all its required parameters.

Parameters

Parameter Description

image_name

Specifies the name of an image specified by a DECLARE-IMAGE.

position

(row, column) Specifies the position of the upper left corner. Position parameters can be relative. See the POSITION command for examples of relative positioning. Document markers are not allowed. After execution, the current position is returned to this location. (This is different from the way the PRINT command works.)

TYPE

Specifies the image type. Types can be EPS-FILE, HPGL-FILE, GIF-FILE, JPEG-FILE, or BMP-FILE (for Microsoft Windows).

IMAGE-SIZE

Specifies the width and height of the image.

SOURCE

Specifies the name of a file containing the image.

Example

For PostScript:

print-image office-signature (50, 20)
print-image (50, 20)
   type            = eps-file
   source           = 'sherman.eps'
   image-size = (10, 3)

For Microsoft Windows:

print-image company-logo (+21, 25)
   type=bmp-file
   source='m:\logos\gustavs.bmp'
   image-size=(75,50)

See DECLARE-IMAGE