Skip to the content.

hmRep_RENDER TO PICTURE ( Area ; picArray ; Format ; Limit ; dpiX ; dpiY)

Introduced in v1.3, Preemptive: yes
Parameter Type In/Out Description
Area Longint Area reference
picArray Array Picture Array of pictures
Format Longint Picture format
Limit Longint Max pages
dpiX Longint DPI x or 0
dpiY Longint DPI y or 0

Description

The command hmRep_RENDER TO PICTURE renders the current report area to pictures. Each page represents one picture in the result array. The parameter Format defines the picture format. You can use one of the following picture formats:

The parameter Limit defines the maximum of pages for the output. If Limit is zero, all pages are rendered.

You can specify a custom DPI in the parameters dpiX and dpiX. Pass 0 for default (Mac: 72, Win: 96 DPI).

Example

The following example renders the report as PNG pictures. The maximum of pages is 3:

ARRAY PICTURE($tb_pictures; 0)

hmRep_RENDER TO PICTURE(reparea; $tb_pictures; hmRep_PicType_PNG; 3)