GrapeCity ActiveReports for .NET 12.0J
OleDBDataSource クラス
メンバ  使用例 

OleDB ADO.NETデータプロバイダを基にしたレポートデータソースを表します。
オブジェクト モデル
OleDBDataSource クラス
構文
'宣言
 
Public NotInheritable Class OleDBDataSource 
public sealed class OleDBDataSource 
使用例
private void detail_Format(object sender, System.EventArgs eArgs)
{    
    rptSub rpt = new rptSubBM();    
    GrapeCity.ActiveReports.Data.OleDBDataSource subDS = new GrapeCity.ActiveReports.Data.OleDBDataSource();  
    subDS.CommandTimeout = 30;  
    subDS.ConnectionString = ((GrapeCity.ActiveReports.Data.OleDBDataSource)(this.DataSource)).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 GrapeCity.ActiveReports.Data.OleDBDataSource()
    subDS.CommandTimeout = 30
    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

参照

関連項目

OleDBDataSource メンバ
GrapeCity.ActiveReports.Data 名前空間
SqlDBDataSource クラス
XMLDataSource クラス

 

 


Copyright © 2003 GrapeCity inc. All rights reserved.