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

0

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
91
Joined: Mar 16 2011 - 11:47am
Last seen: 1 year 12 months ago

1 Answer:

0

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

hozawa's picture
56332
Joined: Apr 24 2010 - 4:31pm
Last seen: 7 months 2 weeks ago
Feedback
randomness