Expression components are used to display the results of MaxBasic expressions. They can be used to display single data fields on reports, or can be used to display results of an expression that results in a string of characters. Expressions are the most commonly used component.
See also Report Designer Component Properties for properties common to all components, such as position and size.
Expression components have the following properties:
Alignment |
Set options to align the component:
|
AlignWithMargins |
When True, the component will align with the page margins. |
Angle |
The angle to display the text on. For example, setting the Angle to 90 will display the Caption vertically. |
AutoHeight |
When True, the height of the component will be automatically adjusted to fit the text. |
Border Properties (BorderBottom, BorderLeft, BorderRight, BorderTop) |
You can place borders around text components. This is useful for drawing boxes around components or separating components from each other with lines.
|
BorderColor |
The component border colour. Click |
BrushColor |
The component background colour. The Transparent property must be set to False for the BrushColor to be visible. Click |
DrillDownCode |
A unique identifier for the Primary Index on the DrillDownTable e.g. a CustomerCode for ARCUST or a DocumentID for INHead. Provides clickable field functionality for report previewed to screen. |
DrillDownTable |
An Accredo or TD Custom table name e.g. ARCUST for an expression displaying CustomerCode or CustomerName. |
ExportColumn |
When exporting the report, the column that will contain this component text. |
ExportColumnWidth |
When exporting the report, the width of the column for this component. |
ExportRow |
When exporting the report, the Export Row is used if the Band is exporting multiple lines. |
Expression |
The full text of the MaxBasic expression which is evaluated when the report is printed. To enter an expression, you can:
If an expression's value is numeric (including any Foreign Exchange, Amount, Price, or Percent), the component is not AutoWidth, and not WordWrap, and the formatted text does not fit into the component width, all characters except decimal and thousand separators are replaced with ? and the resulting string is truncated according to the component alignment. This ensures that where numbers cannot display correctly, they can obviously be identified as ????????.??. |
Font |
Determines the font of the printed output. Click |
FontColor |
The text colour. Click |
Format |
The format for the result of the expression. |
ParentCustomHint |
When True, uses the Custom Hint of the parent Band. |
ParentFont |
When True, uses the Font of the parent Band. Setting this property to True means you can change the font of a band (or the entire report) and have all components on that band (or the report) change to the same font. |
VerticalAlignment |
Set options to align the text within the component vertically:
AutoHeight must be False for this property to have an effect, so the component is a fixed height and text is aligned vertically within it. |
WordWrap |
When True, if the text in the component exceeds the width of the component, the text will wrap to new lines on word boundaries. When False, if the text in the component exceeds the width of the component, the component width will be extended to fit the text. |