Share via


ReportDocument.DataDefinition Property

Gets the DataDefinition object.

Namespace CrystalDecisions.CrystalReports.Engine Assembly CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)

Syntax

'Declaration

Public Overrideable ReadOnly Property DataDefinition As CrystalDecisions.CrystalReports.Engine.DataDefinition
public virtual CrystalDecisions.CrystalReports.Engine.DataDefinition DataDefinition {get;}

Example

This example returns the running total field definition by name.

'Declaration

      Private Function GetRunningTotalFieldDefinitionByName(ByVal myReportDocument As ReportDocument, ByVal fieldName As String) As RunningTotalFieldDefinition
        Dim myRunningTotalFieldDefinitions As RunningTotalFieldDefinitions = myReportDocument.DataDefinition.RunningTotalFields
        GetRunningTotalFieldDefinitionByName = myRunningTotalFieldDefinitions.Item(fieldName)
      End Function
      
      private RunningTotalFieldDefinition GetRunningTotalFieldDefinitionByName(ReportDocument reportDocument, String fieldName)
      {
        RunningTotalFieldDefinitions runningTotalFieldDefinitions = reportDocument.DataDefinition.RunningTotalFields;
        return runningTotalFieldDefinitions[fieldName];
      }
      

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

ReportDocument Class
ReportDocument Members
CrystalDecisions.CrystalReports.Engine Namespace