FlexTech Posted August 11, 2007 Share Posted August 11, 2007 Hi to all, I am quite new with Jasperreport. Can you please help me with a little problem exporting my report into PDF with page breaks or not . So I saw there is a parameter"IS_IGNORE_PAGINATION" wish can be set to TRUE or FALSE. The problem is when i set it to false i get my result with 80 pages wiht page breaks(remarks: I group my element people and start a new page for it). But when i set "IS_IGNORE_PAGINATION" to TRUE, I got a blank page My second parameter works fine. Here is my code : HashMap hm =new HashMap(); hm.put("IS_IGNORE_PAGINATION",Boolean.TRUE);hm.put("Test","My name"); JasperPrint print = JasperFillManager.fillReport("people_details.jasper",hm,cxt); JasperExportManager.exportReportToPdfFile (print, "./pdf/people_details"+".pdf"); Thanks a lot for your help. :-)) Post edited by: FlexTech, at: 2007/08/11 09:21Post edited by: FlexTech, at: 2007/08/11 09:22 Link to comment Share on other sites More sharing options...
FlexTech Posted August 14, 2007 Author Share Posted August 14, 2007 Please Help me... Can someone help or guide me to a solution or explanation. Many thanks a lot. Vic Link to comment Share on other sites More sharing options...
FlexTech Posted August 17, 2007 Author Share Posted August 17, 2007 The solution was easy. You have to add a page break in your report and use the "print expression when" adding a parameter whish will be set to true or false. Be aware to use the version 1.2.9 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