Friday, August 22, 2014

Creating a Blank Report in iReport Designer 5.6.0

I recently set out to create a blank report using the Jaspersoft iReport Designer 5.6.0. When I googled for articles trying to find out how to do this (because it wasn't totally obvious to me from the app) I didn't find any good articles explaining this. Moreover, my question posed on Stack Overflow didn't have very many responses. But thanks to Mike Noland for suggesting I use an empty datasource to configure my report, because that's what set me on the path to find what worked.

To set this up, go to the Report Datasources and click the New button.  This will bring up the following dialog.

Select 'Empty data source' and next.  Then choose to add one empty row and set it as your default data source.  Now if you click the Preview button you'll see all your text but with empty data.  This comes in really handy.  Now all you have to do is remove any parameters you might have so your user doesn't get prompted.  That's assuming you're using a report that originally asked for them.

This was much easier to implement then I was originally making it out to be but I thought I'd help the next guy out.  :)

No comments:

Post a Comment