ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / ConnectionProperties Class / DataProvider Property
Example

In This Topic
    DataProvider Property (ConnectionProperties)
    In This Topic
    Gets or sets the type of the data source.
    Syntax
    'Declaration
     
    Public Property DataProvider As String
    public string DataProvider {get; set;}

    Property Value

    A System.String value indicating the type of the data source.
    Remarks

    The DataProvider value determines the syntax used for the ConnectString and CommandText properties.

    The table below contains the set of data source extensions available by default. Custom extensions can be created but RDL consumers take caution when loading reports containing unknown or unsupported extensions.

    Extension Description
    SQL Microsoft SQL Server
    OLEDB Microsoft OLE DB Provider
    ODBC Microsoft Open Database Connectivity Driver
    Example
    var connectionProperties = new ConnectionProperties();
    connectionProperties.DataProvider = "SQL";
    See Also