wood burning stoves*
The moose likes Other Open Source Projects and the fly likes [JasperReports] Page index Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "[JasperReports] Page index" Watch "[JasperReports] Page index" New topic
Author

[JasperReports] Page index

Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
Hi. I have this requirement to create a page index at the end of a report. Has anyone ever approached this?
My idea is like this:
* create a data source implementation that would accept new elements
* create a scriptlet that would add new row to this data source and that it evaluated for every row - meaning that for each row evaluated, some object name and page would be added to the data source
* have some way of putting the index in the template - for example by creating out own custom XML tag, that would handle the scriptlet and data source itself
* when the report engine gets to this index element (at the end of the report), the page index data source described earlier would be filled, and the index would be generated

Does this make any sense to you?

Regrds,
Raf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [JasperReports] Page index