See Also

OleDBDataSource Members  | DataDynamics.ActiveReports.DataSources Namespace  | SqlDBDataSource class  | XMLDataSource class

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

OleDBDataSource Class

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

For a list of all members of this type, see OleDBDataSource members.

Inheritance Hierarchy

System.Object
   DataDynamics.ActiveReports.DataSources.OleDBDataSource

Syntax

[Visual Basic]
Public Class OleDBDataSource
[C#]
public class OleDBDataSource

Example

[C#] 

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; 
}

[Visual Basic] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.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

See Also

OleDBDataSource Members  | DataDynamics.ActiveReports.DataSources Namespace  | SqlDBDataSource class  | XMLDataSource class

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.