Click here to Skip to main content
15,914,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello experts,
How to create .jrxml file dynamically in jsp code using JasperReport. It is use in dynamic query.

Thanks in advance.
Sush
Posted

1 solution

Hello Sushant,

JRXML is essentially an xml file containing tags which are understood by JasperReportEnging. It basically contains following elements.

  • Styling Information e.g. Font
  • Scriplets A Java class typically used for computations
  • Report Parameter Definition
  • Query to be used for retrieving the data
  • Column Definitions
  • Band Definitions e.g. Header, Footer, Summary etc.
  • And many more


Given that it's an xml file you can either use

  1. XML Document Builder
  2. Dynamic Jasper
  3. Jasper Java API


Jasper API example can be found here.

Regards,
 
Share this answer
 
Comments
Sushant Mandhare 14-Mar-13 6:25am    
Hello Prasad,
I had tried with JasperDesign class use for dyanamic design of PDF page.
but wont work.

reagrds,
Sushant
Prasad Khandekar 14-Mar-13 6:47am    
Hello Sushant,

What all problems you faced?

Regards,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900