Adding a Table Of Content to a Jasper Report?
How do I go about adding a Tabl开发者_JS百科e Of Contents to a Jasper Report?
assuming your are using iReport,
for example,
- add a text field;
- right click, choose
hyperlink
, - set
Hyperlink target
toself
- and set
Hyperlink type
toLocalAnchor
, - set the anchor value in the
Hyperlink Anchor Expression
.
after a pdf has been generated, you can click that text field
which goes the anchor(bookmark if more precisely)
sadly, I don't think iReport can automatically deduce the TOC in a simple manner. So, you have to add these entries manually.
精彩评论