79523142

Date: 2025-03-20 13:48:45
Score: 1.5
Natty:
Report link

Ok so JasperReports Java API is still very bad.

This is how to add content:

((JRDesignSection) jasperDesign.getDetailSection()).addBand(designBand);

It is shocking that after all these years you have to cast to add a band. If someone has documentation about this trick I would appreciate it.

again:

jasperDesign.getDetailSection().addBand(designBand)  // compile error.
Reasons:
  • Blacklisted phrase (1.5): would appreciate
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Jacques Koorts