Report_WriteText()

Examples


The Report_WriteText() function adds a text string to the current band.

Syntax

Report_WriteText(left_pos, top_pos, width, height, alignment, string)

Parameters

left_pos – The location of the left edge of the text rectangle, relative to the left edge of the current band, measured in points.

top_pos – The location of the top edge of the text rectangle, relative to the top of the current band, measured in points.

width – The width of the text rectangle, measured in points.

height – The height of the text rectangle, measured in points.

alignment – An integer specifying the alignment of the string in the text rectangle. The value corresponds to one of the following constants:

[spacer]

Constant

Description

ALIGN_LEFT

Left aligned

ALIGN_CENTER

Center aligned

ALIGN_RIGHT

Right aligned


string – The string that will be displayed in the text rectangle.

Return value

The boolean value true.

Comments

When specifying the width and height of the text rectangle, keep in mind that the text in the rectangle will be positioned at the top of the text rectangle, allowing appropriate space for accented characters. If the
text rectangle is not large enough, the text will but cut off on the right and bottom.


Documentation Feedback