Print Page | Close Window

What to use instead of FieldDefinition.UseCount

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=14005
Printed Date: 28 Mar 2024 at 7:22pm


Topic: What to use instead of FieldDefinition.UseCount
Posted By: IoanaCr
Subject: What to use instead of FieldDefinition.UseCount
Date Posted: 08 Aug 2011 at 10:44pm
I am using CrystalReports VisualStudio 2008. I need to know which fields from my data source are actually used on my report at runtime, including fields used in formula editor.
FieldDefinition.UseCount seamed to be what I needed, but this property is obsolete and returns true for all the fields in my datasource.
 
What object and properties should I use?    Iterating through all the ReportDocument.ReportDefinition.ReportObjects does part of the job but I still cannot find the fields used in formulas ( like format formulas  for supressing a section) .      If you have any ideea please help Cry.
 
Ioana



Print Page | Close Window