EnterpriseReport.Username Property

Gets or sets the user name.

Namespace CrystalDecisions.Shared Assembly CrystalDecisions.Shared (CrystalDecisions.Shared.dll)

Syntax

'Declaration

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

Example

This example shows how to set the user name for an EnterpriseReport.

'Declaration

    Private Sub SetUsernamePassword(ByVal myEnterpriseReport As EnterpriseReport, _
    ByVal username As String, ByVal password As String)
      myEnterpriseReport.Username = username
      myEnterpriseReport.Password = password
    End Sub
    private void SetUsernamePassword(EnterpriseReport enterpriseReport, string username, string password)
    {
      enterpriseReport.Username = username;
      enterpriseReport.Password = password;
    }

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

EnterpriseReport Class
EnterpriseReport Members
CrystalDecisions.Shared Namespace