Jump to content

How to compile a .jasper-file out of a .jrxml-file


mkr-fr

Recommended Posts

Hello everyone,

is it possible to compile a jasper-file out of a jrxml-file programmaticaly in java? I mean, a JRXML-File can be converted to any format like html, pdf, csv... and I think it should be possible to get a Jasper-File out of it!? A convertion outside of java like in IReports is no option. It needs to be done during runtime. Any suggestions would be welcome.

 

Greetings Marco

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi Marco,

 

Yes, you can use JasperCompileManager in your Java code to compile .jrxml file and convert it to .jasper file then you can use the exporter to export the report to any format such as pdf, html, csv, excel...etc.

 

Regards,

Bob

Link to comment
Share on other sites

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...