Problems in creating TOC in jasperReports

By: Ganesh Ram N - ganeshram
Problems in creating TOC in jasperReports
2003-11-24 22:34
I tried to create table of contents for my reports using the sample give by jasper. But i face problems while generating pdf file. There is a mismatch in the anchor expression that is being set. The anchor expression that i set is a combination of groupname, field value and page number. While building a pdf report i get an error message saying that anchor that you have set does not have a destination.
This happen during pagends alone. ie an anchor gets set something like "group_10_Value" where 10 is the page number. But the group header gets displayed in the 11th page. I have tried setting isSplitAllowed and isPrintInFirstWholeBand with appropriate values. I have also tried setting "minHeightToStartNewPage" with a proper value. It doesn't seem to work. I face this problem if i have more than one level in the TOC. Has any one been successful trying TOC using JasperReports demo????
Need your help. Thanks in advance....

2002 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:28am
Last seen: 16 years 7 months ago

2 Answers:

Where can I find this TOC demo to which you are referring?

dmoreland's picture
Joined: Nov 12 2007 - 9:20pm
Last seen: 15 years 4 months ago

Download the latest jasper reports source code. You will find it in the demo folder. There are several examples. TOC is one of them.

shrije's picture
Joined: Apr 5 2008 - 8:59am
Last seen: 9 years 3 days ago