GrapeCity.ActiveReports.Document.v9 アセンブリ > GrapeCity.ActiveReports.Document.Section 名前空間 > PagesCollection クラス : 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