combit List & Label 30 - .NET Help
combit.Reporting.DataProviders Namespace / OleDbConnectionDataProvider Class / OleDbConnectionDataProvider Constructor / OleDbConnectionDataProvider Constructor(OleDbConnection)
The connection to use.
Example


OleDbConnectionDataProvider Constructor(OleDbConnection)
Initializes the data provider to access the data from the passed OleDbConnection.
Syntax
'Declaration
 
Public Function New( _
   ByVal connection As OleDbConnection _
)
 

Parameters

connection
The connection to use.
Example
OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + DatabasePath); 
OleDbConnectionDataProvider provider = new OleDbConnectionDataProvider(conn); 
LL.DataSource = provider; 
LL.Design();
Dim conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + DatabasePath)
Dim provider As New OleDbConnectionDataProvider(conn)
LL.DataSource = provider
LL.Design()
Requirements

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

See Also