ActiveReports 9
AddRange Method (PagesCollection)
Example 

Adds an array or collection of pages.
Overload List
OverloadDescription
AddRange(Page[])Adds the specified array of Page objects to the collection.  
AddRange(PagesCollection)

Adds the pages from the specified collection into the collection.

 
Example
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;
}
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
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PagesCollection Class
PagesCollection Members

How To

Insert or Add Pages

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum