How to discover from Java program that a report run has no data

My local Java program creates a JRPrint file as output. This works fine.

Question: how can I detect if a run of a report from the local Java program results in "No data found". How can I detect this from Java?

mulcamd's picture
367
Joined: Mar 16 2011 - 11:47am
Last seen: 2 years 5 months ago

1 Answer:

You can try extracting sql statement from the jrxml file and executing it to find if it returns any data.

hozawa's picture
154312
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 5 months ago
Feedback
randomness