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

Glossary Item Box

Inserts the specified page into the collection at the specified index.

Overload List

Insert(Int32,Object)Inserts a Page object element into the PagesCollection at the specified index.  
Insert(Int32,Page)Inserts a Page element into the PagesCollection at the specified index.  


C#Copy Code
private void Form1_Load(object sender, System.EventArgs e)
    rptInsertPage rpt = new rptInsertPage();
    rptCoverPage rpt2 = new rptCoverPage();
    viewer1.Document = rpt.Document;
    rpt.Document.Pages.Insert(0, rpt2.Document.Pages[0]);
Visual BasicCopy Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim rpt As New rptInsertPage()
    Viewer1.Document = rpt.Document    rpt.Run()
    Dim rpt2 As New rptCoverPage()
    rpt.Document.Pages.Insert(0, rpt2.Document.Pages(0))
End Sub

See Also


PagesCollection Class
PagesCollection Members

How To

Insert or Add Pages