6

如何向 Jasper 报告添加目录?

4

1 回答 1

0

assuming your are using iReport,

for example,

  1. add a text field;
  2. right click, choose hyperlink,
  3. set Hyperlink target to self
  4. and set Hyperlink type to LocalAnchor,
  5. 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.

enter image description here

于 2015-01-06T21:58:45.000 回答