I don't know how many the columns exactly is util the user submits a request,how can I come true a dynamic columns in a jasperreport template?
Thank you very much!
Post edited by: cuiweibing, at: 2006/08/03 05:21
You could build or modify the report template dynamically using the API, just like shown in the /demo/samples/noxmldesign sample that comes with the project distribution.
If you do that, you would also need to compile it on-the-fly after building or modifyinf the JasperDesign object.
I hope this helps.
thanks, I have actually used the api to modify my jasperDesign object and recompile my report. The question I have is, how to I wrap columns. At times the columns I have, created dynamically from user input, exceeds the width of the page. How to I create new pages at the end of the report for the remaining columns. Crosstabs do something similiar when the columns exceed the width of the page, it prints the remaining columns at the end of the report on new pages. How could I achieve something similiar?
I want just to ask you about the dynamic columns, if there is any improvment about creating dynamic reports, or I should do it the way it is replied earlier?
The problem is that my report is too big and it will be very hard to implement it all using the api. Is there any way to create it with iReport and then editing some how the text fields or static texts and their position or even remove some of them i it si needed, for example?
I will be very pleased if you can answer me soon!
Thank you in advance!
Hello, please I need change the design(.jrml) in execution time but not working,I dont no why...
please ,any body can help me Lemay
my code : $JasperDesign = new Java ('net.sf.jasperreports.engine.design.JasperDesign'); > $JRDesignQuery = new Java ('net.sf.jasperreports.engine.design.JRDesignQuery'); > $JRXmlLoader = new Java ('net.sf.jasperreports.engine.xml.JRXmlLoader'); > > $JasperDesign = $JRXmlLoader->load('C:\Archivos de programa\Apache Group\Apache2\htdocs\web\Copia de reporte3.jrxml'); > > $query = "Select nombre,Ci,telef from empleados Order by nombre"; > > $JRDesignQuery->setText($query); > $JasperDesign->setQuery($JRDesignQuery); > > > $JasperDesign->removeField('nombre'); //I want delete the field 'nombre' in my report design > > $compileManager = new JavaClass("net.sf.jasperreports.engine.JasperCompileManager"); > > > $report = $compileManager->compileReport($JasperDesign);
Post Edited by michel Rodriguez at 03/17/09 03:56
Post Edited by michel Rodriguez at 03/17/09 03:57