BackPrevious Page Next PageNext

Labels

Inserting labels in a report

Formatting the labels in a report

A label is an object that contains a string. It is typically a brief description used to identify a field or other value nearby.

Labels in a report can be used as the trigger object of links, and you can change their display types if you want.

Inserting labels in a report

Labels can be inserted in the report areas listed in Component placement.

To insert a label in a report:

A label with the default text "Label" is inserted. You can then edit the text of a label as follow:

You can also modify a label's text by using the Text property value in the Report Inspector.

Formatting the labels in a report

You can format the label text with the Format manu tab of the JReport Designer main window, for example, you can change the font size, color, and alignment of the text.

To format a label, first select the label, and then perform any of the following tasks:

Note: You cannot use drag and drop or the Insert menu to insert labels into charts. For details about chart labels, see the chart topic Formatting the Labels.

See an example: The SampleComponents catalog, included with JReport Designer, contains reports that have examples of how each component type could be used in a report. For the label component example, open <install_root>\Demo\Reports\SampleComponents\ForLabel.cls.

BackPrevious Page Next PageNext