asuccar Posted September 26, 2013 Share Posted September 26, 2013 Hi,I need to split JasperPrint into different objects based on the data. Is there a way to do it? Thank you. Link to comment Share on other sites More sharing options...
C-Box Posted October 1, 2013 Share Posted October 1, 2013 Hi you can split your JasperPrint with parsing the elements and export each range of JRPrintPage into different PDFs for example.I do so to split a multi records datasheet report containing several pages for different serial-numbers intp single PDF files.So I add an hidden field (textcolor white) in the PageFooter band, for each change of the content of this hidden field I do generate a new PDF. (e.g. the whole JasperPrint object get 50 pages... each serial-number took 2 pages... so I get 25 PDF files. :-) hth + regards from GermanyC-Box Link to comment Share on other sites More sharing options...
asuccar Posted October 2, 2013 Author Share Posted October 2, 2013 Hi again,Thank you for your answer. But how can i tell the exporter to export to a new file when the value of the hidden field changes knowing that it can change in any page.Is there any sample code?Thank you . 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