PdfViewer.GoToNextPage
Moves to next page.
public bool GoToNextPage()
Function GoToNextPage() As Boolean
Returns
True if successfully moved to next page else false.
Licensing Info
This method is a DynamicPDF Viewer feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Viewer selected.
- A DynamicPDF Viewer for .NET v3.X Developer license.
Examples
The following example will show how to move to next page.Imports System
Imports System.Windows.Forms
Imports ceTe.DynamicPDF.Viewer
Public Class Form1
Inherits System.Windows.Forms.Form
Private MyPdfViewer As PdfViewer
Sub New()
InitializeComponent()
End Sub
Private Sub InitializeComponent()
Me.MyPdfViewer = New PdfViewer()
Me.Controls.Add(MyPdfViewer)
End Sub
Shared Sub Main()
Application.Run(New Form1())
End Sub
Private Sub NavigateToPage()
' Move to next page.
Dim bResult As Boolean = MyPdfViewer.GoToNextPage()
If bResult Then
MessageBox.Show("Successfully moved to next page")
Else
MessageBox.Show("There's no next page to move")
End If
End Sub
End Class
using System;
using System.Windows.Forms;
using ceTe.DynamicPDF.Viewer;
namespace DynamicPDFViewerDemo
{
public class Form1 : Form
{
private ceTe.DynamicPDF.Viewer.PdfViewer dpdfViewer;
public Form1()
{
InitializeComponent();
}
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void InitializeComponent()
{
this.dpdfViewer = new PdfViewer();
this.Controls.Add(dpdfViewer);
}
private void NavigateToPage()
{
// Move to next page.
bool bResult = GoToNextPage();
if(bResult)
MessageBox.Show("Successfully moved to next page");
else
MessageBox.Show("There's no next page to move");
}
}
}