Share via


ReportDocument.DataSourceConnections Property

A collection of IConnectionInfo objects which contains connection info of all the tables in the report. This does not include the subreports.

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

Syntax

'Declaration

Public Overrideable ReadOnly Property DataSourceConnections As CrystalDecisions.Shared.DataSourceConnections
public virtual CrystalDecisions.Shared.DataSourceConnections DataSourceConnections {get;}

Example

This example returns the number of the data source connections in a report.

'Declaration

      Private Function GetDataSourceConnectionsCount(ByVal myReportDocument As ReportDocument) As Integer
        GetDataSourceConnectionsCount = myReportDocument.DataSourceConnections.Count
      End Function
      
      private int GetDataSourceConnectionsCount(ReportDocument reportDocument)
      {
        return reportDocument.DataSourceConnections.Count;
      }
      

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports .NET 10

See Also

Reference

ReportDocument Class
ReportDocument Members
CrystalDecisions.CrystalReports.Engine Namespace