I am new to this forum and i would appreciate if some one can help me in fixing my issue. I need to print a report through java, Only if the sql used by the jrxml has some data in it. In order to do this, I need to hit database twice, First time to check if the sql has any records and second time to print the report. By doing this, its taking twice the time than usual. Is there any way by which i can check if its having the data and print it for the first time itself.
Thanks in advance.