'We assume that the GdViewer1 control has been properly integrated.
Dim status As GdPictureStatus = GdViewer1.DisplayFromFTP("ftp://ftp.mywebsite.com/mydocument.pdf", "mylogin", "mypassword")
If status <> GdPictureStatus.OK Then
If status = GdPictureStatus.InternetConnectError Then
'Use the GetLastTransferError() method here to find the reason for the failure.
MessageBox.Show("Internet connection error: " + GdViewer1.GetLastTransferError(), "GdViewer.GetLastTransferError")
End If
End If
//We assume that the GdViewer1 control has been properly integrated.
GdPictureStatus status = GdViewer1.DisplayFromFTP("ftp://ftp.mywebsite.com/mydocument.pdf", "mylogin", "mypassword");
if (status != GdPictureStatus.OK)
{
if (status == GdPictureStatus.InternetConnectError)
//Use the GetLastTransferError() method here to find the reason for the failure.
MessageBox.Show("Internet connection error: " + GdViewer1.GetLastTransferError(), "GdViewer.GetLastTransferError");
}