Share via


Table.Name Property

Gets the alias name for the database table used in the report.

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

Syntax

'Declaration

Public Overrideable ReadOnly Property Name As String
public virtual string Name {get;}

Example

This example sets the table data source and returns an alias name.

'Declaration

      Private Function SetTableDataSource(ByVal myTable As Table, ByVal newSource As Object)
        Dim aliasName As String = Nothing
        myTable.SetDataSource(newSource)
        If myTable.TestConnectivity = True Then
          aliasName = myTable.Name
        End If
        SetTableDataSource = aliasName
      End Function
      
      private string SetTableDataSource(Table table, object newSource)
      {
        string aliasName = null;
        table.SetDataSource(newSource);
        if (table.TestConnectivity())
        {
          aliasName = table.Name;
        }
        return aliasName;
      }
      

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

Table Class
Table Members
CrystalDecisions.CrystalReports.Engine Namespace