BackPrevious Page Next PageNext

Banded Object

The properties of a banded object are as follows. A banded object can have the following child objects: Banded Footer, Banded Header, Banded Page Footer, Banded Page Header, Banded Page Panel, Detail Panel, Group Footer Panel, Group Header Panel, and Group Panel.

Property Name Description
General
Data Inherit Indicates whether the dataset for this object is inherited from another object. This property is read only.
Display Name Specifies the display name of the object.

Data type: String

Instance Name Shows the instance name of the object. This property is read only.
Geometry
Height Shows the height of the object, in inches. This property is read only.

Data type: Float

Width Specifies the width of the object, in inches. Enter a numeric value to change the width.

Data type: Float

X Specifies the horizontal coordinate of the top left corner of the object, relative to its parent container. This property is unavailable if the Position property is set to static. Enter a numeric value to change the position in inches.

Data type: Float

Y Specifies the vertical coordinate of the top left corner of the object, relative to its parent container. This property is unavailable if the Position property is set to static. Enter a numeric value to change the position in inches.

Data type: Float

Color
Background Specifies the background color of the object. Choose a color from the drop-down list or select Custom to customize a color. You can also enter a hexadecimal RGB value (for example, 0xff0000) to specify a color.

Data type: String

Border
Border Color Specifies the color of the border of the object. Choose a color from the drop-down list or select Custom to customize a color. You can also enter a hexadecimal RGB value (for example, 0xff0000) to specify a color.

Data type: String

Border Thickness Specifies the width of the border. 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

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

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

Enable Navigation Specifies whether to enable page navigation on the banded object. If it is set to true, if the banded object contains more than one page, a page navigation bar specific for the banded object will be available right below it. You can use the bar to view the desired pages.

When this property is set to true, you can further specify the height and width of the page for the banded object to display multiple pages, by setting the two properties Navigation Height and Navigation Width. If you later resize the banded object, the two properties will be reset to the resized values.

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 HTML Specifies whether to include the object when exporting the report to HTML.

Data type: Boolean

Export to PDF Specifies whether to include the object when exporting the report to PDF.

Data type: Boolean

Export to PostScript Specifies whether to include the object when exporting the report to PostScript.

Data type: Boolean

Export to Report Result Specifies whether to include in Web Report Studio or when the report is opened in Web Report Result.

Data type: Boolean

Export to RTF Specifies whether to include the object when exporting the report to RTF.

Data type: Boolean

Export to Text Specifies whether to include the object when exporting the report to Text.

Data type: Boolean

Export to XML Specifies whether to include the object when exporting the report to XML.

Data type: Boolean

Invisible Specifies whether to show or hide the object. All formulas and calculations will still be performed if the property is set to true. You can also use a formula to control whether or not to show the object.

Data type: Boolean

Navigation Height Specifies the height of the page for the banded object to display multiple pages. Enter a numeric value to specify the height. If no value is given here, JReport will calculate the banded object page height. This property takes effect when Enable Navigation is set to true.

Data type: Float

Navigation Width Specifies the width of the page for the banded object to display multiple pages. Enter a numeric value to specify the width. If no value is given here, JReport will calculate the banded object page width. This property takes effect when Enable Navigation is set to true.

Data type: Float

Position Specifies the position of the object. Available when the object is directly contained in the report body or a tabular cell.
  • absolute - The object's position will be decided by its X and Y property values.
  • static - The object will be positioned at the default location in its container. If selected, the X, Y and other position-related properties will be hidden or disabled.

Data type: Enumeration

Record Location Specifies the calculation point for the properties which use formulas. Choose an option from the drop-down list.
  • Default - The values of the properties are calculated in the default location where they are located.
  • Page Header - The values of the properties are calculated in the page header.
  • Page Footer - The values of the properties are calculated in the page footer.

Data type: Enumeration

Suppress Specifies whether to show the object in the report. 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 when no record is returned to it.

Data type: Boolean

Suppress When No Records Specifies whether to display the object in the report when no record is returned to its parent data component.

Data type: Boolean

 

Record Location

This property is to specify the calculation point for the properties of the object. Here is an example:

A report specifies to display Continued on Next Page for every page that has another following it. If this label is inserted in the Page Header/Page Footer, then every page including the last page will contain the message. There is a way to write formulas that can resolve the problem:

Continue1:
global boolean j=true;
j=false;

Continue2:
pagenumber;
j=true;

Continue3:
pagenumber;
return j;

Insert Continue1 into the Report Header, Continue2 into the Report Footer. To track the calculation, you can insert Continue3 into the Page Footer. If you do not want to see these formulas in view mode, you can suppress them.

Insert label Continued on Next Page in the Page Header, and use Continue3 to control its property Invisible.

Set the property Record Location of the above label to be Page Footer, so that Continue3 returns value which is calculated in the Page Footer instead of in the Page Header.

PageNumber is included in the formula to force it to execute as a page level formula in the order the formula is encountered rather than at the end of a group or report.

BackPrevious Page Next PageNext