Empty sub-report

  • Thread starter Thread starter Jonathan Blitz
  • Start date Start date
J

Jonathan Blitz

I have a report with a sub-report in it's details section.
All is ok when there is data in the sub-report. However, if there is no data
I get an empty page instead of no page at all (as I would expect).
Is this how it works or is there something I haven't done?

--
Jonathan Blitz
AnyKey Limited
Israel

"When things seem bad
Don't worry and shout
Just count up the times
Things have worked themselves out."
 
The empty page is coming from your main report, not the subreport. Do you
have the subreport set to Can Shrink?
 
Yes I do have CanShrink set.

--
Jonathan Blitz
AnyKey Limited
Israel

"When things seem bad
Don't worry and shout
Just count up the times
Things have worked themselves out."
 
Without knowing more about your report setup, I can't provide much more
assistance. You could probably determine the HasData property of the
subreport and if this returns false then cancel the printing of the section.
 
Back
Top