ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Win Assembly / GrapeCity.ActiveReports.Viewer.Win Namespace / Viewer Class / PageOffset Property
Example

PageOffset Property
Specifies the location of the page in the viewer.
Syntax
'Declaration
 
Public Property PageOffset As Point
 

Property Value

The page offset as a System.Drawing.Point.
Remarks
This property is particularly useful for adjusting the initial viewing position of a page within the viewer. It is only effective when the viewer is in single page view mode; otherwise, it returns System.Drawing.Point.Empty.
Example
private void Form1_Load(System.Object sender, System.EventArgs e)
{
	Viewer1.LoadDocument(new SectionReport1());
}

private void  Viewer1_LoadCompleted(System.Object sender, System.EventArgs e)
{
	Viewer1.PageOffset = new System.Drawing.Point(100, 200);
}
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Viewer1.LoadDocument(New SectionReport1())
End Sub

Private Sub Viewer1_LoadCompleted(sender As System.Object, e As System.EventArgs) Handles Viewer1.LoadCompleted
        Viewer1.PageOffset = New System.Drawing.Point(100, 200)
End Sub
See Also