ActiveReports 6 Online Help
OleDBDataSource Class
Members  Example 

Represents a report data source based on the OleDb ADO.NET data provider.
Object Model
OleDBDataSource Class
Syntax
'Declaration
 
Public NotInheritable Class OleDBDataSource 
public sealed class OleDBDataSource 
Example
private void detail_Format(object sender, System.EventArgs eArgs)
{    
    rptSub rpt = New rptSubBM();    
    DataDynamics.ActiveReports.DataSources.OleDBDataSource subDS = New DataDynamics.        
        ActiveReports.DataSources.OleDBDataSource();    
    subDS.ConnectionString = this.ds.ConnectionString;    
    subDS.SQL = "Select * from products where categoryID = " + m_categoryID;    
    rpt.DataSource = subDS;    
    ctlSubReport.Report = rpt;
}
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
    Dim rpt As New rptSubBM()
    Dim subDS As New DataDynamics.ActiveReports.DataSources.OleDBDataSource()    
    subDS.ConnectionString = Me.ds.ConnectionString    
    subDS.SQL = "Select * from products where categoryID = " + m_categoryID    rpt.DataSource = subDS    
    Me.ctlSubreport.Report = rpt 
End Sub
Inheritance Hierarchy

System.Object
   DataDynamics.ActiveReports.DataSources.OleDBDataSource

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

OleDBDataSource Members
DataDynamics.ActiveReports.DataSources Namespace
SqlDBDataSource Class
XMLDataSource Class

Send Feedback