Jump to content
We've recently updated our Privacy Statement, available here ×

Is specifying DataSource mandatory?


apx1sharma

Recommended Posts

 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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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