java - JasperReport- best approach for multiple pages static reports -


i need create static report of 3 pages , every page contains static text , fields retrieved database query.

my first approach, after reading similar questions, create 3 separated report files (page1.jrxml, page2.jrxml , page3.jrxml) , merge resulting reports single one. works fine happens field contains long string , single file report generetes 2 pages, leading horrible printing because first page full second contains 1 or few lines.

can suggest me better approach?

thanks

we use jrxml templates , have 1 jrxml. not need have multiple files split static text many details (paragraphs) , if first page overlap few lines inmediatelly followed next detail.

in our app use jasper java , pass params jasperfillmanager.

we create template:

compiledtemplate = jaspercompilemanager.compilereport(...); 

and fill variables

jasperprint = jasperfillmanager.fillreport(compiledtemplate, map params, dto implementing jrdatasource); 

and export pdf:

ret = jasperexportmanager.exportreporttopdf(jasperprint); 

and thats it.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -