The Report_WriteText() function adds a text string to the current band.
Report_WriteText(left_pos, top_pos, width, height, alignment, string)
• 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:
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.
The boolean value true.
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.