title: Print jrxml report only if the sql used by jrxml has data in it
body: <p>I need to print a report through <em>Java</em> 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?</p>