Bullets and numbering within reports

2019-06-22 12:43发布

问题:

How do you add a bullet list and stylized numbered list using JasperReports?

回答1:

Try:

  1. Add static text (or a text field).
  2. Set Markup in the Properties panel to: html
  3. Use the following HTML markup in the text:
<ul>
  <li>bulleted item 1</li>
  <li>bulleted item 2</li>
</ul>
<ol>
  <li>ordered item 1</li>
  <li>ordered item 2</li>
</ol>


回答2:

The problem starts, where we want to do automatic numbering without CSS styles. I solved this by implementing own JRDataSource.