combit List & Label 29 - .NET Help
combit.Reporting.DataProviders Namespace / OdbcConnectionDataProvider Class
Members Example


In This Topic
    OdbcConnectionDataProvider Class
    In This Topic
    This data provider can be used to consume data from an OdbcDbConnection (e.g. an Excel file). This class is serializable.
    Object Model
    OdbcConnectionDataProvider Class
    Syntax
    'Declaration
     
    
    Public NotInheritable Class OdbcConnectionDataProvider 
       Inherits DbConnectionDataProvider
       Implements ICanHandleUsedIdentifiers, IDataProvider, combit.Reporting.ISupportsLogger 
    public ref class OdbcConnectionDataProvider sealed : public DbConnectionDataProvider, ICanHandleUsedIdentifiers, IDataProvider, combit.Reporting.ISupportsLogger  
    Example
    OdbcConnection conn = new OdbcConnection(@"Driver={SQL Native Client};Server=myServerName\theInstanceName;Database=myDataBase; Trusted_Connection=yes;");
    OdbcConnectionDataProvider provider = new OdbcConnectionDataProvider(conn);
    LL.DataSource = provider;
    LL.Design();
    Dim conn As New OdbcConnection("Driver={SQL Native Client};Server=myServerName\theInstanceName;Database=myDataBase; Trusted_Connection=yes;")
    Dim provider As New OdbcConnectionDataProvider(conn)
    LL.DataSource = provider
    LL.Design()
    Inheritance Hierarchy

    System.Object
       combit.Reporting.DataProviders.DbConnectionDataProvider
          combit.Reporting.DataProviders.OdbcConnectionDataProvider

    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also