I have created table view inside main report.
Inside table row I am taking sub-report, when sub-report having data it works perfectly but when sub-report is empty it showing one black color line inside table row.
I had set the properties for sub-report 'remove line when blank= true' it is working in only sub report, but when I am compiling main report it showing one line.
To remove the subreport, you need to
isRemoveLineWhenBlank="true"
in mainreport on the subreport's, reportElement
tag
whenNoDataType="NoPages"
in subreport on the jasperReports
tag (or remove attribute, default is NoPages