Previous Topic: Print Statement ExampleNext Topic: Customize Crystal Reports


Print Statement Remarks

Place PRINT where you want the data for a reporting section to appear in the report. You can include a PRINT statement in a BLOCK statement.

A field’s content occupies the exact space delineated by the square brackets. Any excess characters are truncated. However, you can close a field with an angle bracket (>) to permit its content to expand in its entirety towards the right margin.

Note: If the print statement for a MULTILINE variable is closed with the right angle bracket (>), characters wrap on white space to stay within the field defined by the left bracket ([) and the right angle bracket (>). Also, if the variable is not MULTILINE, the right angle bracket (>) causes all the data to be displayed on the current line regardless of its length.

To reference a variable or column name in another BLOCK statement, use the following syntax:

blockname::column | variable-name