How can i show the subreport data when main report has no data?
Posted on December 18, 2017 at 6:13am
in which band is the subreport?
Have you tried the whenNoDataType option at the root XML element (jasperReport)? Value could be "AllSectionsNoDetail".
from http://jasperreports.sourceforge.net/schema.reference.html#jasperReport :
|Allows users to customize the behavior of the reporting engine when there are now rows in the data source.|
|Base Type: string|
Posted on December 18, 2017 at 2:29pm
Have you tried setting to "AllSectionsNoDetail" and set Print on Expression to not print a subreport when there is a data.
Posted on January 1, 2018 at 5:39am
thanks alot dear hozawa and dear Marcus