Jump to content
We've recently updated our Privacy Statement, available here ×

How to remove the empty space when there is no data in Detail band 2 ?


ayushkumar.bilala
Go to solution Solved by sanbez,

Recommended Posts

sample.JPG.d7f27fa68bfa558d1b6b5599f0f2335e.JPG

Hi All,

I am creating a report having three sub reports in it. All the three subreports are in their seperate detail bands. When all the three subreports are fetching data, I am getting perfect final output. But in case subreport in detail band 2 fails to fetch data (due to mismatch of condition in its sql query), I am getting blank space between detail band 1 and detail band 2. I tried a lot in removing that blank space but failed to. 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution

Variant 1 (easy):   Set vertical size of Detail 2 equal size of subreport (not empty rows in Detail 2 after subreport). Set in Main report in propetry windows of subreport 2  check box "Remove line when blank" in "checked". May be in this case, you must set Properties "When no data" in subreport2 in to "All sections, no details".

Variant2 (more difficult)
Return value $V{REPORT_COUNT} from subreport2 into main report (for example variable $V{Var1)). And set Print when expression ${Var1} on Detail2 section (or subreport).

HTH

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...