GdPicture.NET Reference Guide
PrintGetLastError Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : PrintGetLastError Method
Returns the error description of the last executed print operation, that has failed specifically with the GdPictureStatus.PrintingException error.
Syntax
'Declaration
 
Public Function PrintGetLastError() As String
public string PrintGetLastError()
public function PrintGetLastError(): String; 
public function PrintGetLastError() : String;
public: string* PrintGetLastError(); 
public:
String^ PrintGetLastError(); 

Return Value

The description of the last printing error.
Remarks
The value resets to its default (an empty string) starting each new print job.
Example
Printing an image and checking the status of after printing method.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("intput.png")
If imageId <> 0 Then
   oGdPictureImaging.Print(ImageID)
   Dim status As GdPictureStatus = oGdPictureImaging.PrintGetStat()
   If  status <> GdPictureStatus.OK Then
      MessageBox.Show("Error: " + PrintGetLastError.ToString())
   Else
      MessageBox.Show("Printing Success!")
   End If
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
PrintGetStat Method
Print Method