ActiveReports.Viewer3 Request technical support
Pages Property
See Also  Example


Gets a reference to the document's pages.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Pages As PagesCollection
Visual Basic (Usage)Copy Code
Dim instance As Document
Dim value As PagesCollection
 
value = instance.Pages
C# 
public PagesCollection Pages {get;}

Example

C#Copy Code
private void Detail_Format(object sender, System.EventArgs eArgs)
{
   
for(int i = 0; i<Document.Pages.Count;i++)
   {
       
this.Document.Pages[i].AddBookmark("New Bookmark", 25);
   }
}
Visual BasicCopy Code
Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
    Dim i As Integer
    Try
        For i = 0 To Me.Document.Pages.Count - 1
            Me.Document.Pages(1).AddBookmark("New Bookmark", 8)
        Next
    Catch ex As Exception
    End Try
End Sub

Remarks

Use this collection to add, remove or modify the pages of the document.

See Also