PowerTools ActiveReports for .NET 9.0J
InsertRange メソッド
使用例 

ページの範囲をコレクションの指定したインデックスに挿入します。
オーバーロード一覧
オーバーロード解説
InsertRange(Int32,PagesCollection)Overloaded: Inserts the elements from PageCollections objects into the PagesCollection at the specified index.  
InsertRange(Int32,Page[])Overloaded: Inserts the elements from an array of Page objects into the PagesCollection at the specified index.  
使用例
private void button1_Click(object sender, System.EventArgs e)
{
    GrapeCity.ActiveReports.SectionReport merge = new GrapeCity.ActiveReports.SectionReport();
    GrapeCity.ActiveReports.Document.SectionDocument fRdf = new GrapeCity.ActiveReports.Document.SectionDocument();
    fRdf.Load(@"C:\a.rdf");
    merge.Document.Pages.InsertRange(merge.Document.Pages.Count, fRdf.Pages);
    fRdf.Load(@"C:\b.rdf");
    merge.Document.Pages.InsertRange(merge.Document.Pages.Count, fRdf.Pages);
    arv.Document = merge.Document;
}
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim merge As New GrapeCity.ActiveReports.SectionReport
    Dim fRdf As New GrapeCity.ActiveReports.Document.SectionDocument
    fRdf.Load("C:\a.rdf")
    merge.Document.Pages.InsertRange(merge.Document.Pages.Count, fRdf.Pages)
    fRdf.Load("C:\b.rdf")
    merge.Document.Pages.InsertRange(merge.Document.Pages.Count, fRdf.Pages)
    Me.arv.Document = merge.Document
End Sub
参照

関連項目

PagesCollection クラス
PagesCollection メンバ

 

 


©2003-2015 GrapeCity inc. All rights reserved.