vasumathi.kannan Posted December 22, 2015 Share Posted December 22, 2015 Hi,I have a report that is deployed on to a Jasper server repository. As part of a query result, I will be receiving a set of columns at run time. How will I be able to add these columns to the report at run time?Please advice,Regards,Vasumathi Link to comment Share on other sites More sharing options...
edu-de Posted December 24, 2015 Share Posted December 24, 2015 You can compile the jrxml file at runtime. This allows you to modify it for your needs before compiling, in your case to add your needed columns, and then compile the modified jrxml file.E.g.:JasperDesign jasperDesign = JRXmlLoader.load(jrxmlStream);// Modify your jrxml file using the jasperDesignJasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);[/code] Link to comment Share on other sites More sharing options...
vasumathi.kannan Posted January 4, 2016 Author Share Posted January 4, 2016 How will I do it in a Jasperserver environment? currently, I import jrxmls to the server repository and run them from the library. I am not using a Jasper reports library jar in my application. If that was the case, I would have used the JasperDesign object to modify the report design and compile it later. Is it possible to do it in the server environment? PLease advice Link to comment Share on other sites More sharing options...
rajarambeeee3 Posted June 24, 2016 Share Posted June 24, 2016 Does anyone know answer for this? I have also same issue. 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