Following are the icons used on the development
Palette for the Text and Dynamic Text:
For the following example, we will build on to our Hello World report, by adding in
a list that will be formatted with HTML. The items will be Item 1, Item 2, and Item
3 respectively. Item 1 will be set to bold using HTML; Item 2 and Item 3 will remain
unchanged. For the purpose of this example you do not need to be familiar with
HTML, as I will walk you through the steps. A detailed tutorial on HTML is outside
of the scope of this book.
1. Open the HelloWorld.rptdesign from the Classic_Cars_BIRT_Reports
project. From the Palette, drag the Text object over to the Report Designer
pane, just below the Hello World label. The Text element icon is illustrated at
the beginning of this section.
2. The Edit Text Item Dialog will pop up. Here, we can edit the type of text we
want to be appeared, control the HTML formatting of the text, and get access
to quick menus that will allow us to see a small sample of HTML code that
we can embed in a text object. At the very top, change the type of text from
Auto to HTML.
Chapter 4
[ 59 ]
3. Go ahead and play around with the different types of formatting menus
here. You can see the drop-down box that says Formatting. Change that from
Formatting to Lists. Hit the
button that appears to the right of the
drop-down list.
Pages:
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78