Print Page | Close Window

Suppress pages with no data

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=17403
Printed Date: 06 Apr 2025 at 5:04am


Topic: Suppress pages with no data
Posted By: Guests
Subject: Suppress pages with no data
Date Posted: 23 Aug 2012 at 9:49am
I have an report goes out automatically.  It has a cross tab in one section, charts in the next section and the details in the next. What I want to do is suppress the cross-tab and the chart pages when there is no data to report but still show the details section even if there is no data. 
 
I tried to suppress the section is blank but this does not work.  Any suggestions?
-dsmith



Replies:
Posted By: hilfy
Date Posted: 24 Aug 2012 at 3:19am
In the section expert, click on the formula button to the right of "Suppress" (do NOT check the checkbox!) and enter something like the following:
 
IsNull({some field that indicates whether there's data})
 
-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics


Posted By: Guests
Date Posted: 24 Aug 2012 at 5:17am

Thank you for a quick response, but that didn't work either.  Is it because when the report is generated it pulls the data first and then applies the criteria?  If this is the case, there will always be data for the field I report on, but based on the criteria the report may be blank. 

I have a text box in both sections, removed them and the pages still showed up. 
 
 
 


Posted By: hilfy
Date Posted: 24 Aug 2012 at 5:51am
Include in the suppression criteria the filter that you're using for the report in this type of format:
 
IsNull({field}) or Not(<filter criteria>)
 
-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics


Posted By: Guests
Date Posted: 24 Aug 2012 at 6:09am
That worked....YOU ARE A GENIUS! Thank you



Print Page | Close Window