Jump to content

How to add dynamic columns to a report in a Jasper server environmet?


vasumathi.kannan

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

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

  • 2 weeks later...

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

  • 5 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...