TableLogOnInfo 类

提供属性,以便检索和设置表连接选项。

有关该类型所有成员的列表,参见 TableLogOnInfo 成员。

System.Object
   TableLogOnInfo

[Visual Basic]

Public Class TableLogOnInfo
Implements ICloneable

[C#]

public class TableLogOnInfo : ICloneable

示例

教程

该示例说明如何设置按名称指定的表的 TableLogOnInfo 对象。

  
[Visual Basic]
      Private Sub SetLogOnInfo(ByVal server As String, ByVal database _ 
      String, ByVal userID As String, ByVal password As String, ByVal _ 
      table As String)
      
         Dim logOnInfo As New TableLogOnInfo()
         logOnInfo = report.Database.Tables.Item(table).LogOnInfo
      
         logOnInfo.ConnectionInfo.ServerName = server
         logOnInfo.ConnectionInfo.DatabaseName = database
         logOnInfo.ConnectionInfo.UserID = userID
         logOnInfo.ConnectionInfo.Password = password
         logOnInfo.TableName = table
      End Sub
      
  
[C++]
      static void SetLogOnInfo (String* server, String* database, String* userID, String* password, String* table)
      {
         TableLogOnInfo* logOnInfo = new TableLogOnInfo ();
         logOnInfo = Report->Database->Tables->Item [table]->LogOnInfo;
      
         logOnInfo->ConnectionInfo->ServerName = server;
         logOnInfo->ConnectionInfo->DatabaseName = database;
         logOnInfo->ConnectionInfo->UserID = userID;
         logOnInfo->ConnectionInfo->Password = password;
         logOnInfo->TableName = table;
      };
      
  
[C#]
      private void SetLogOnInfo (string server, string database, string userID, string password, string table)
      {
         TableLogOnInfo logOnInfo = new TableLogOnInfo ();
         logOnInfo = Report.Database.Tables [table].LogOnInfo;
      
         logOnInfo.ConnectionInfo.ServerName = server;
         logOnInfo.ConnectionInfo.DatabaseName = database;
         logOnInfo.ConnectionInfo.UserID = userID;
         logOnInfo.ConnectionInfo.Password = password;
         logOnInfo.TableName = table;
      }
      

要求

命名空间 CrystalDecisions.Shared

程序集 CrystalDecisions.Shared (CrystalDecisions.Shared.dll)

请参见

TableLogOnInfo 成员 | CrystalDecisions.Shared 命名空间

**

©2005 Business Objects SA 保留所有权利。

Business Objects SA
http://www.china.businessobjects.com/
支持服务
http://www.china.businessobjects.com/