Visual Basic (Declaration) | |
---|---|
Public NotInheritable Class OleDBDataSource |
C# | |
---|---|
public sealed class OleDBDataSource |
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 = ((GrapeCity.ActiveReports.Data.OleDBDataSource)(this.DataSource)).ConnectionString; subDS.SQL = "Select * from products where categoryID = " + m_categoryID; rpt.DataSource = subDS; ctlSubReport.Report = rpt; } |
Visual Basic | Copy 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 = CType(Me.DataSource, GrapeCity.ActiveReports.Data.OleDBDataSource).ConnectionString subDS.SQL = "Select * from products where categoryID = " + m_categoryID rpt.DataSource = subDS Me.ctlSubreport.Report = rpt End Sub |
System.Object
GrapeCity.ActiveReports.Data.OleDBDataSource
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