'We assume that the GdViewer1 control has been properly integrated.
If GdViewer1.DisplayFromFile("") = GdPictureStatus.OK Then
Dim message As String = "The current file is: " + GdViewer1.GetLastPath() + vbCrLf +
"The document type is: " + GdViewer1.GetDocumentType().ToString()
MessageBox.Show(message, "GdViewer.GetDocumentType")
Else
MessageBox.Show("The file can't be loaded. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.GetDocumentType")
End If
//We assume that the GdViewer1 control has been properly integrated.
if (GdViewer1.DisplayFromFile("") == GdPictureStatus.OK)
{
string message = "The current file is: " + GdViewer1.GetLastPath() +
"\nThe document type is: " + GdViewer1.GetDocumentType().ToString();
MessageBox.Show(message, "GdViewer.GetDocumentType");
}
else
MessageBox.Show("The file can't be loaded. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.GetDocumentType");