'We assume that the GdViewer1 control has been properly integrated.
If GdViewer1.DisplayFromFile("") = GdPictureStatus.OK Then
MessageBox.Show("PageCount = " + GdViewer1.PageCount.ToString() + vbCrLf +
"CurrentPage = " + GdViewer1.CurrentPage.ToString(), "GdViewer.PageCount")
Else
MessageBox.Show("The file can't be displayed. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.PageCount")
End If
//We assume that the GdViewer1 control has been properly integrated.
if (GdViewer1.DisplayFromFile("") == GdPictureStatus.OK)
{
MessageBox.Show("PageCount = " + GdViewer1.PageCount.ToString() +
"\nCurrentPage = " + GdViewer1.CurrentPage.ToString(), "GdViewer.PageCount");
}
else
MessageBox.Show("The file can't be displayed. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.PageCount");