TableLinks Class

Contains the TableLink objects for every table link in the report.

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

Syntax

'Declaration
Public Class TableLinks
    Inherits SCRCollection
    Implements IDisposable, ICollection, IEnumerable, IEnumerator
public class TableLinks : SCRCollection, IDisposable, ICollection, IEnumerable, IEnumerator

Remarks

Retrieve the TableLinks collection through the TableLinks Property of the Database object.

Example

This example searches for a table link by a numerical index.

'Declaration

      Private Function GetTableLinkByIndex(ByVal myReportDocument As ReportDocument, ByVal index As Integer) As TableLink
        If index >= 0 And index < myReportDocument.Database.Links.Count Then
          GetTableLinkByIndex = myReportDocument.Database.Links.Item(index)
          Exit Function
        End If
      End Function
      
      private TableLink GetTableLinkByIndex(ReportDocument reportDocument, int index)
      {
        if (index >= 0 && index < reportDocument.Database.Links.Count)
        {
          return reportDocument.Database.Links[index];
        }
        return null;
      }
      

Inheritance Hierarchy

Object
   EngineObjectBase
      SCRCollection
         TableLinks

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

TableLinks Members
CrystalDecisions.CrystalReports.Engine Namespace