Specifies the location of the page in the viewer.
Syntax
Visual Basic (Declaration) | |
---|
Public Property PageOffset As Point |
C# | |
---|
public Point PageOffset {get; set;} |
Example
C# | Copy Code |
---|
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);
} |
VB.NET | Copy Code |
---|
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 |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also