mathewrond Posted November 8, 2006 Share Posted November 8, 2006 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 More sharing options...
lucianc Posted November 8, 2006 Share Posted November 8, 2006 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 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