How to pass bookmarks property to subreport in jasperReport for table of contents generation?

0

I am using Java APIs to compile Jasperreports jrxml templates without groups and parts, using only subreports. I am able to successfully generate a PDF report with bookmarks.

I need to create a table of contents subreport. The API net.sf.jasperreports.engine.JasperPrint.getBookmarks returns correctly a bookmarks arrayList with (label, level, pageIndex).

I need help in passing this bookmarks arraylist property as a parameter in the dataSourceExpression tag to my table of contents subreport from my master jrxml template.

The textfields in my ToC subreport have evaluation set to "report" so I can get the values during report generation.

Please help.

abdullah.a's picture
Joined: Nov 15 2019 - 7:11pm
Last seen: 3 weeks 2 days ago

0 Answers:

No answers yet
Feedback