Share via


Table.Location Property

Gets or sets the location of the database table.

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

Syntax

'Declaration

Public Overrideable Property Location As String
public virtual string Location {get; set;}

Example

This example sets the location of a database table.

'Declaration

      Private Sub ChangeDatabaseLocation(ByVal myReportDocument As ReportDocument)
         myReportDocument.Database.Tables.Item(1).Location = System.AppDomain.CurrentDomain.BaseDirectory & "\xtreme.mdb"
      End Sub
      
      private void ChangeDatabaseLocation(ReportDocument reportDocument)
      {
         reportDocument.Database.Tables[1].Location = System.AppDomain.CurrentDomain.BaseDirectory + "\\xtreme.mdb";
      }
      

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