ActiveReports Developer 7
OleDBDataSource Class
Members  Example  See Also 
GrapeCity.ActiveReports.v7 Assembly > GrapeCity.ActiveReports.Data Namespace : OleDBDataSource Class

Glossary Item Box

Represents a section report data source based on the OleDb ADO.NET data provider.

Object Model

OleDBDataSource Class

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class OleDBDataSource 
C# 
public sealed class OleDBDataSource 

Example

C#Copy Code
private void detail_Format(object sender, System.EventArgs eArgs)
{    
    rptSub rpt = New rptSubBM();    
    GrapeCity.ActiveReports.Data.OleDBDataSource subDS = new GrapeCity.ActiveReports.Data.OleDBDataSource();    
    subDS.ConnectionString = this.ds.ConnectionString;    
    subDS.SQL = "Select * from products where categoryID = " + m_categoryID;    
    rpt.DataSource = subDS;    
    ctlSubReport.Report = rpt;
}
Visual BasicCopy Code
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 GrapeCity.ActiveReports.Data.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
   GrapeCity.ActiveReports.Data.OleDBDataSource

See Also