yamanko Posted April 28, 2010 Share Posted April 28, 2010 does jasper support TOC in PDF? i notice there is an attribute called 'bookmarkLevel' in text control, i can exporte report to pdf with bookmark, but not TOC. it's weried that this attribute, as well as anchor name expression, can not edited in IDE (iReport), but only added in jasper report before compile it. what can i do if i need TOC in PDF, i think TOC is group attribute, it should be edited in group concept rather than text control like bookmark attribute.does anyone have solution for TOC in PDF? im using jasper 3.7.1 now and i checked the release note of 3.7.2, no info related with TOC Link to comment Share on other sites More sharing options...
slow Posted April 28, 2010 Share Posted April 28, 2010 I'm not able at this time to make a detailed study of this example (I'm at work!)so can you try to take a look to it?http://jasperforge.org/website/jasperreportswebsite/trunk/samples.html?header=project&target=jasperreportsfind in the page "Table of Contents Sample"and then give us a report of you study :) ____________________________________if it works... give me KARMA points please! : ) Link to comment Share on other sites More sharing options...
yamanko Posted April 28, 2010 Author Share Posted April 28, 2010 Hi, thanks for you suggestion.. i have found another solution for my requirement, im still using bookmark level to implement TOC in PDF, it finally works, even has some limitation. anyway, thanks for you reply. Link to comment Share on other sites More sharing options...
slow Posted April 28, 2010 Share Posted April 28, 2010 can you give to forum users details about your solution?it's a good practice giving details of solved issue :) Link to comment Share on other sites More sharing options...
yamanko Posted April 29, 2010 Author Share Posted April 29, 2010 see following steps1, add dummy group header and set this band's height as 12, add text control in this band and set this control's height as 13, set this control's value as " ", note that this is not blank string, there needs one character in this expression4, set this control's hypelink, setting bookmark level anchor name5, make sure this control's stretch with overflow is enabled the PDF output seems good with above solution Link to comment Share on other sites More sharing options...
slow Posted April 29, 2010 Share Posted April 29, 2010 thanks... it's a good example...have you find also a solution to create dinamic index (printed TOC , not bookmark)... uhm... with dinamic page number, link etc etc ? Link to comment Share on other sites More sharing options...
yamanko Posted April 30, 2010 Author Share Posted April 30, 2010 not yet.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now