apx1sharma Posted October 7, 2010 Share Posted October 7, 2010 I was writing a simple program for creating a basic Jasper report.My reports were blank. After doing some googling, I realised below statement was wrong:JasperFillManager.fillReportToFile("HelloJasper.jasper",jasperParameter);I added a DataSource in above line and things started working.JasperFillManager.fillReportToFile("HelloJasper.jasper",jasperParameter, new JREmptyDataSource()); My question is: Is this mandatory to provide a Datasource for creating Report? I mean, can't my program create Reports without a DataSource()?There is overriden version of fillReport() in JasperFillManager.class that does not accept DataSource. What is that for? Post Edited by apx1sharma at 10/08/2010 02:22 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