xzy_329 Posted December 14, 2009 Share Posted December 14, 2009 I print many JasperPrints together into one PDF file and set the param as below:pdf.setParameter(JRPdfExporterParameter.IS_CREATING_BATCH_MODE_BOOKMARKS, true);but the bookmarks are printed just one by one,how to make bookmark like attaching pic by the way, can jasperreport make directory like Word doc? thanks a lot! Link to comment Share on other sites More sharing options...
xzy_329 Posted December 14, 2009 Author Share Posted December 14, 2009 Could someone help me?Thanks very much! Link to comment Share on other sites More sharing options...
lucianc Posted December 14, 2009 Share Posted December 14, 2009 What you need to do is to set texts as anchors with bookmarkLevel attributes. See the demo/samples/datasource sample report shipped with JR for a working example.Regards,Lucian Link to comment Share on other sites More sharing options...
xzy_329 Posted December 15, 2009 Author Share Posted December 15, 2009 Hi, LucianThank you for your reply,but now I still have another problem: the bookmarks are organized by template(jrxml) but not by whole reportfor example, I prepare 3 template: A.jrxml, B.jrxml, C.jrxml,and JasperPrintA, JasperPrintB, JasperPrintC using template A, B, C. I add JasperPrintA, JasperPrintB, JasperPrintC into a print list and set it to JRPdfExporterParameter.JASPER_PRINT_LISTThe bookmarks printed are organized by JasperPrintA, JasperPrintB and JasperPrintC seperately as below:+ bookmarkA+ bookmarkB+ bookmarkCWhat I want is like this:- bookmarkA |- bookmarkB |- bookmarkCI mean bookmarkA is the top level, and bookmarkB and bookmarkC are down level of bookmarkACould I Make that? Waiting for your kindly reply and thank you in advance! Link to comment Share on other sites More sharing options...
xzy_329 Posted December 16, 2009 Author Share Posted December 16, 2009 Could someone help me? Link to comment Share on other sites More sharing options...
lucianc Posted December 22, 2009 Share Posted December 22, 2009 The PDF exporter doesn't allow you to specify a bookmark hierarchy for the reports in JASPER_PRINT_LIST. The exporter will always consider the reports in the list at the same level.You can look into extending the PDF exporter to implement the functionality that you need.Regards,Lucian 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