ReportDocument.SetDatabaseLogon Method (String,String)
Sets the database logon information with a user name and password.
Namespace CrystalDecisions.CrystalReports.Engine Assembly CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)
Syntax
'Declaration
Public Overrideable Sub SetDatabaseLogon ( _
ByVal user As String, _
ByVal password As String _
)
public virtual void SetDatabaseLogon (
string user,
string password
)
Parameters
- user
The user name.
- password
The password.
Remarks
Logon information is applied to all tables in the report.
Example
This example sets the database logon information in the report. The example sets the user name to "user" and the password to "pass".
'Declaration
myReportDocument.SetDatabaseLogon("user", "pass")
reportDocument->SetDatabaseLogon("user", "pass");
reportDocument.SetDatabaseLogon("user", "pass");
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports .NET 9
See Also
Reference
ReportDocument Class
ReportDocument Members
CrystalDecisions.CrystalReports.Engine Namespace