Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Supress blank section doesn't work

Status
Not open for further replies.

jenlion

IS-IT--Management
Nov 13, 2001
215
I've had this problem over and over. I have a page header with a subreport that is frequently blank. I split the page header and put the subreport in PH-b. I tell PH-b to supress blank sections. I tell the subreport details section (the only section not supressed outright) to supress blank sections.

If there is no data for the subreport, I want the page header to be smaller. Instead, I get the big white space for the subreport anyway.

What am I missing??
 
In Crystal 8.5, I have a stripdown version of the subreport in PH-a to pass me a shared variable.

In the subreport in PH-a
Code:
shared booleanvar subsuppress := false;
If isnull(table.linkid) then true
I use the shared variable in PH-b Format Section -> Suppress x+2
Code:
shared booleanvar subsuppress;
subsuppress

Cheers,

-LW
 
I had tried something similar ... I had forgotten that the shared vars have to go *before* the area you are trying to suppress. thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top