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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Supress Blank subreport

Status
Not open for further replies.

maggi

Programmer
Nov 21, 2002
27
US
I have a subreport in my Group footer 3. If a subreport is empty it displays a blank page. I went to Format Subreport -> Subreport tab -> Supress Blank Subreport. But that doesn't seem to do anything. How should I fix this?

Thanks
 
Try also checking "supress blank section" in the section expert

-- Jason
"It's Just Ones and Zeros
 
Edit the subreport and then Click on File->Report Options and check "Suppress Printing if no records"

-lw
 
Checked all the above options but still no luck.
 
Are you sure there is not any data in the sub?

Page #, line, date, etc

-- Jason
"It's Just Ones and Zeros
 
No there is nothing. The only thing is that I have subreport displayed for every Region. For example, my report is grouped on region. So it finds Region1 and displays the data in the subreport for that region1 on the next page and then moves on to Region2 and does the same thing. Right now if there are no records for Region1, it will display an empty page and move to Region2.
 
I assume that there is data in the subreport for the other regions? If this is the case I THINK you will need to conditionally suppress the subreport based on the group data.

-- Jason
"It's Just Ones and Zeros
 
Yes there is. How can I conditionally suppress?
 
Right-click on a section and choose Section Expert. Then choose the formula icon (x+2 and a pencil) for suppression. Enter a formula; e.g.
{AccNo} = Previous({AccNo}) and {changeflag} <> "Y"
This would mean that only one instance of the account is shown unless the flag was set for a second case etc.

It's best to give your Crystal version.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Within the subreport, go to the section expert->sections that are displayed->suppress->x+2 and enter:

isnull({table.region})

You should also have "suppress blank section" checked on these sections. Use this in conjunction with "suppress blank subreport".

-LB
 
lbass, I did as above and I dont see my subreport border now. But I still have the empty page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top