ActiveReports Developer 7
InsertRange Method
See Also  Example
GrapeCity.ActiveReports.Document.v7 Assembly > GrapeCity.ActiveReports.Document.Section Namespace > PagesCollection Class : InsertRange Method

Glossary Item Box

Inserts a range of pages into the collection at a specified position.

Overload List

OverloadDescription
InsertRange(Int32,PagesCollection)Inserts the members of the specified PagesCollection into the collection at the specified index.  
InsertRange(Int32,Page[])Inserts an array of Page objects into the collection at the specified index.  

Example

C#Copy Code
private void button1_Click(object sender, System.EventArgs e)
{
    GrapeCity.ActiveReports.ActiveReport merge = new GrapeCity.ActiveReports.SectionReport();
    GrapeCity.ActiveReports.Document.Document 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;
}
Visual BasicCopy Code
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

See Also