Jump to content
Changes to the Jaspersoft community edition download ×

dummy .jasper file


mathewrond

Recommended Posts

Hi,

Is there an option to create a dummy .jasper file?

 

I have a condition where in if I dont have any data available then I need to display "No data available"

 

I dont want to use the existing jrxml file but would want to create a dummy .jasper file on the fly with this text.

 

Is this possible?

 

Mathew

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You can create a JasperPrint object (or JasperDesign object, which you can compile into a JasperReport, not sure what you are trying to achieve) and serialize it to a file using JRSaver.

 

Check out the "noreport" and "noxmldesign" samples in the JR distribution.

 

HTH,

Lucian

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