Saturday, April 26, 2008

Creating a New Report Using iReport



The Basics.

Click File à New Document (or Ctrl+N). You will get the following window.

example 1.JPGThis goes without saying as self explanatory. Give the name you want for the report. But There is one Major thing you want to remember.

When No Data is present Display the Static Text.

Most designers would require the report to display header information (static text such as Report Title, date) when there is no data to display. The report does not have these properties set by default. To do that you need to set the Right Option in the “More” Tab in the report creation window.

example2.JPGThis can be set by a Java code too. But that’s another topic altogether. I find after developing a lot of reports I forget have always forgotten to set this option. And had to go back and set it.

19 comments:

Anonymous said...

helped me a lot.......thank u very much

Anonymous said...

me too :) thank you

arejae said...

thanks a lot. ;)

jef said...

Thanks very much...

rvega said...

Great! i was looking around for this solution :)

Anonymous said...

I have the correct configuration set as shown above, still having the problem, getting a blank page, actually it doesnot create any pdf document. Any help is appreciated.

guides costarica said...

this site is excellent and the guides are excellent throughout the network sought and none had information that this site has enabled me congratulate very good information is very varied and interesting is great.

Anonymous said...

Thanks, no data info was usefull for me.

Reece said...

Many many many thanks! Very helpful.

Anonymous said...

thx, very useful

Anonymous said...

Very useful and simple step. Great working..

Anonymous said...

Thanks a lot... saves my lot of time

Anonymous said...

Would it be possible to create a custom page that displays an error message and set "When no data" to "custom page / error message " ?

Anonymous said...

Thank you! I was looking for info like this

Mohinder said...

thanks! very useful

Anonymous said...

When I am using page break in ireport I am getting one blank page extra.

Anonymous said...

Thanks... this is what i was searching for.

anup77 said...

Thanks great work

Khaleel said...

but it is in ireport only how it is possible in jasper studio

Post a Comment