Print report only if the sql used by jrxml has data in it

Hi,

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.

 

 

 

 

nares's picture
2
Joined: Oct 7 2010 - 1:11pm
Last seen: 8 years 1 month ago

Hi Nares, are you using this form Java directly using the JR library or are you using JasperServer?

 

marianol - 9 years 4 months ago

0 Answers:

No answers yet
Feedback