The properties of a banded object in a page report are:
Property Name | Description | |||
---|---|---|---|---|
General | ||||
Class Type | Indicates the class type of the object. This property is read only. | |||
Data Inherit | Indicates whether the dataset for this object is inherited from another object. This property is read only. | |||
Dataset | Indicates the dataset used by the object. This property is read only. | |||
Instance Name | Shows the instance name of the object. This property is read only. | |||
Geometry | ||||
Height | Specifies the height of the object, in inches or centimeters.
Enter a numeric value to change the height. Enabled when it is a
horizontal banded object.
Data type: Float |
|||
Width | Specifies the width of the object, in inches or centimeters. Enter a numeric value to change the width.
Enabled when it is a vertical banded object.
Data type: Float |
|||
X | Specifies the horizontal coordinate of the top left corner of the object, relative to its parent container. This property is ignored if the Position property is set to static. Enter a numeric value to change the position in inches or centimeters.
Data type: Float |
|||
Y | Specifies the vertical coordinate of the top left corner of the object, relative to its parent container. This property is ignored if the Position property is set to static. Enter a numeric value to change the position in inches or centimeters.
Data type: Float |
|||
Color | ||||
Background | Specifies the background color of the object. Choose a color from the drop-down list, enter a hexadecimal RGB value (for example, 0xff0000), choose/create a formula or edit an expression that returns a color, or select Custom from the drop-down list to specify the color.
Data type: String |
|||
CSS | ||||
Class | Specifies a CSS class to be applied to the object which is a valid class in the CSS file.
Data type: String |
|||
Style | The property can be used in two ways:
Data type: String |
|||
Others | ||||
Cache | Specifies whether to cache the dataset for this object in the data buffer so other objects which use the same dataset can share the data rather than perform their own SQL query.
Data type: Boolean |
|||
Export to CSV | Specifies whether to include the object when exporting the report to CSV.
Data type: Boolean |
|||
Export to Excel | Specifies whether to include the object when exporting the report to Excel.
Data type: Boolean |
|||
Export to Page Report Result | Specifies whether to include the object when exporting the report to Page Report Result.
Data type: Boolean |
|||
Invisible | Specifies whether to show the object in the design area and in the report results. All formulas and calculations will still be performed if the property is set to true.
Data type: Boolean |
|||
Position | Specifies the position of the object. Choose an option from the drop-down list.
Data type: Enumeration Note: This property only affects objects with a parent container that is the report body, a table cell, a tabular cell, or a text box. |
|||
Record Location | Specifies the calculation point for the properties which use formulas. Choose an option from the drop-down list.
Data type: Enumeration |
|||
Suppress | Specifies whether to show the object in the design area and in the report results. All formulas and calculations will be skipped if the property is set to true.
Data type: Boolean Note: When both the Invisible and Suppress properties of an object are set to true, Suppress has the higher priority. |
|||
Suppress When Empty | Specifies whether to display the object in the report results when no record is returned to it.
Data type: Boolean |
|||
Suppress When No Records | Specifies whether to display the object in the report results when no record is returned to its parent data container.
Data type: Boolean |
|||
Excel | ||||
Column Index | Specifies the X coordinate of the object relative to its parent container when exported to Excel or CSV, measured in cells. The Columned property at the report tab level must be set to true for this property to take effect.
Data type: Integer |
|||
Row Index | Specifies the Y coordinate of the object relative to its parent container when exported to Excel or CSV, measured in cells. The Columned property at the report tab level must be set to true for this property to take effect.
Data type: Integer |
|||
Border | ||||
Border Color | Specifies the color of the border of the object. Choose a color from the drop-down list, enter a hexadecimal RGB value (for example, 0xCCAA00), choose/create a formula or edit an expression that returns a color, or select Custom from the drop-down list to specify the color.
Data type: String |
|||
Border Joint | Specifies the joint style for the border lines of the object. Choose an option from the drop-down list.
Data type: Enumeration |
|||
Border Thickness | Specifies the width of the border in inches or centimeters. Enter a numeric value to change the thickness.
Data type: Float |
|||
Bottom Line | Specifies the line style of the bottom border of the object. Choose a style from the drop-down list.
Data type: Enumeration |
|||
Left Line | Specifies the line style of the left border of the object. Choose a style from the drop-down list.
Data type: Enumeration |
|||
Radius | Specifies the radius for the border line joint of the object. This property takes effect only when Border Joint is set to round.
Data type: Integer |
|||
Right Line | Specifies the line style of the right border of the object. Choose a style from the drop-down list.
Data type: Enumeration |
|||
Top Line | Specifies the line style of the top border of the object. Choose a style from the drop-down list.
Data type: Enumeration |
|||
TOC | ||||
Anchor Display Value | Specifies a string or formula to display for the TOC entry for this object in the TOC Browser. By default it is the value of the specified object. The TOC Anchor property must be set to true for this property to take effect.
Data type: String |
|||
TOC Anchor | Specifies whether to include the object in the TOC Browser for the report.
Data type: Boolean |
|||
Accessibility | ||||
External CSS Class Selector | Specifies a class selector to be applied to the object when exported as HTML. Enter a valid class name from the CSS file.
Data type: String |
|||
External ID | It is mapped to the HTML attribute id. This attribute specifies a name to the object, which must be unique in the report.
Data type: String |
|||
Language | It is mapped to the HTML attribute lang. This attribute specifies the base language of the object's attribute values and text content.
Data type: String |
The two properties together provide a way for you to control the position of an object in the exported CSV or Excel file by specifying values to them.
However, JReport has default values for them which is calculated based on the position of each object in the report. You can find the default values of the two properties right after you set the Columned property at the report tab level to true.
To make the specified values take effect when exporting the report to CSV or Excel, the following is necessary for both exporting formats:
More requirements for preview as Excel:
More requirements for Excel exporting:
More requirements for CSV exporting:
Note: Preview as Text cannot support the specified values for the default setting of Delimited Format is unchecked and it is unconfigurable.
The following topics list properties of the children of a banded object: