See Also

PagesCollection Class  | PagesCollection Members  | Walkthrough: Adding Pages

Language

Visual Basic

C#

Show All

index
Index of the new page.
See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

InsertNew Method

Creates a new Page object and inserts it into the collection at the specified index.

[Visual Basic]
Public Function InsertNew( _    ByVal index As Integer _ ) As Page
[C#]
public Page InsertNew(    int index );

Parameters

index
Index of the new page.

Example

[C#] 

Private void Form1_Load(object sender, System.EventArgs e) 

    rptInsertPage rpt = New rptInsertPage(); 
    viewer1.Document = rpt.Document; 
    rpt.Run(); 
    rpt.Document.Pages.InsertNew(3); 
}

[Visual Basic] 

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

PagesCollection Class  | PagesCollection Members  | Walkthrough: Adding Pages

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.