ActiveReports 12
InsertNew Method
Example 

GrapeCity.ActiveReports.Document.v12 Assembly > GrapeCity.ActiveReports.Document.Section Namespace > PagesCollection Class : InsertNew Method
Index of the new page.
Creates a new Page object and inserts it into the collection at the specified index.
Syntax
'Declaration
 
Public Function InsertNew( _
   ByVal index As Integer _
) As Page
public Page InsertNew( 
   int index
)

Parameters

index
Index of the new page.
Example
Private void Form1_Load(object sender, System.EventArgs e)
{
    rptInsertPage rpt = New rptInsertPage();
    viewer1.Document = rpt.Document;
    rpt.Run();
    rpt.Document.Pages.InsertNew(3);
}
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()
    rpt.Document.Pages.InsertNew(3)
End Sub
See Also

Reference

PagesCollection Class
PagesCollection Members

How To

Insert or Add Pages