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

Suppress spaces if no data in Subreport 2

Status
Not open for further replies.

maulae

IS-IT--Management
Feb 7, 2006
34
US
Hi,
I have problem with blank space in my main report even if I supppress blank section, fit section in the main report as well as in the subreport, I also suppress all the section and fields in subreport if no data is there but still - I found blank spaces between two section of my main report which look weird if have data in the next section of the report.
Woould please tell me how can I suppress that unwanted section which has blank subreport.
Thanks for the help
 
If you're using Crystal 8.5, there is no solution, though there is a work-round:

a) Copy the subreport
b) Place the subreport in some higher section, and make it as small as possible.
c) Use Shared Variables to pass back a value, that will indicate whether or not the subreport should be suppressed.
d) Use this returned value to determine whether or not to suppress the main copy of the subreport.

It always helps to give your Crystal version.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
You should always post your version. From an earlier post I see you are using 10. You can select the subreport->format subreport->subreport tab->check "suppress blank subreport". You should also have the section it is placed in formatted to "suppress blank section".

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top