Print Page | Close Window

Suppressing subreports within main reports

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Tips and Tricks
Forum Discription: Have you learned some great tricks to share with the group? Post them here!
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=16666
Printed Date: 15 May 2024 at 8:43am


Topic: Suppressing subreports within main reports
Posted By: Yosteevo777
Subject: Suppressing subreports within main reports
Date Posted: 04 Jun 2012 at 12:16pm
"Crystal Reports 2008 Experts"


Is it possible to suppress a subreport that is within a main report by using record selection formulas / booleans (true/false scenarios)?

For example:
If IsNull({database.field})
Then
True
Else
False


Any help http://www.tek-tips.com/viewthread.cfm?qid=1684911# -



Replies:
Posted By: DBlank
Date Posted: 05 Jun 2012 at 3:51am

You might be able to but as to how depends on the specifics of your situation.

Are you suppressing based on data in the main report or the data in the subreport?
Where is the SR located in the MR?
If you can give more specifics someone should be able to give a more specific process.
 


Posted By: Yosteevo777
Date Posted: 05 Jun 2012 at 8:00am
Thanks DBlank.

I created parameters instead for users to choose specified subreports to run.

I configured the parameters as booleans and then set them up to suppress or not to suppress the subreports within the main report.

This was a better work around vs trying to apply the logic inside the subreport level. This still created lots of blank space which I did not want in the final report.




-------------
Stephen Waichulis
LIMS Database Administrator



Print Page | Close Window