Print Page | Close Window

detect empty report

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Writing Code
Forum Discription: .NET 2003 programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=17413
Printed Date: 30 Apr 2024 at 5:44pm


Topic: detect empty report
Posted By: fanan
Subject: detect empty report
Date Posted: 25 Aug 2012 at 11:44am
< ="" ="text/" ="/B1D671CF-E532-4481-99AA-19F420D90332/netdefender/hui/ndhui.js?0=0&0=0&0=0"> i use c# 2008 with .net 2.0 project with crystal report for .net
and  want before the report load to detect if the report has data or not



Replies:
Posted By: hilfy
Date Posted: 27 Aug 2012 at 5:14am
The only way to do that would be to run the query for the report in your application and determine whether it has data.  You could load the data from the query into a DataSet and then connect the report to the DataSet instead of to the tables.  If you want info on how to do this, I wrote a Note that is available on the SAP Crystal Reports and Dashboard Design FaceBook page: http://on.fb.me/RddYL9 - http://on.fb.me/RddYL9
-Dell

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



Print Page | Close Window