ActiveReports.Viewer3 Request technical support
RepositionPage Property
See Also  Example


Determines whether the viewer will reposition the view to the top of the page when a user goes to another page after scrolling downward in a page.

Syntax

Visual Basic (Declaration) 
Public Property RepositionPage As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ReportViewerObject
Dim value As Boolean
 
instance.RepositionPage = value
 
value = instance.RepositionPage
C# 
public bool RepositionPage {get; set;}

Return Value

Boolean value. If True, the viewer will reposition the view to the top of the page. If False, the viewer will persist the current position of the page to all pages. The default value is False.

Example

C#Copy Code
private void arv_Load(object sender, System.EventArgs e)
{
   rptDD rpt =
new rptDD();
   rpt.Run();
   arv.Document = rpt.Document;
   arv.ReportViewer.RepositionPage = true;
}
Visual BasicCopy Code
Private Sub arv_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load
    Dim rpt As New rptDD
    rpt.Run()
    arv.Document = rpt.Document
    arv.ReportViewer.RepositionPage = True
End Sub

See Also