hello to all
i am currently working on jasper report .i am using ireport 5.5 to design template of the report and java bean datasource to execute query from
java class file to poplulate the table data in template.The format of the exported report is .xlsx and it is working fine .
Question: how to add new data to the report side by side to the old data . I mean , i want to append the new values to the report .
PS- i am preparing daily report for a particular service used by customers . so i need each day data adjacent to old data of the customer .
i hope i made my query clear , if not please ask me if there is any doubt.
thanking you all in anticipation and thanking the people responsible to keep this site up for people like us.
I think that your best approach will be to using subreports. The main report queries the new data and the subreport queries the old data. That way you can have both in the same report unit.
The other option will be to use 2 table components. Table components will work with report datasets. Each dataset can have it's own query (in your case can call different beans) then each table will be driven by it's own dataset. Also JR allows you to pass parameters from the main report to the dataset.