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

pages

Collection of pages to be added to the collection.

Glossary Item Box

Adds the pages from the specified collection into the collection.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub AddRange( _
   ByVal pages As PagesCollection _
) 
C# 
public void AddRange( 
   PagesCollection pages
)

Parameters

pages

Collection of pages to be added to the collection.

Example

C#Copy Code
private void Form1_Load(object sender, System.EventArgs e)
{
    rptOne rpt1 = new rptOne();
    rpt1.Run();
    rptTwo rpt2 = new rptTwo();
    rpt2.Run();
    rpt1.Document.Pages.AddRange(rpt2.Document.Pages);
    viewer1.Document = rpt1.Document;
}
Visual BasicCopy Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim rpt As New rptOne()
        rpt.Run()
        Dim rpt2 As New rptTwo()
        rpt2.Run()
        rpt.Document.Pages.AddRange(rpt2.Document.Pages)
        Viewer1.Document = rpt.Document
End Sub

See Also