GdPicture.NET Reference Guide
PrintSetActivePrinter Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : PrintSetActivePrinter Method
The name of the new active printer.
Changes the active printer.
Syntax
'Declaration
 
Public Function PrintSetActivePrinter( _
   ByVal PrinterName As String _
) As Boolean
public bool PrintSetActivePrinter( 
   string PrinterName
)
public function PrintSetActivePrinter( 
    PrinterName: String
): Boolean; 
public function PrintSetActivePrinter( 
   PrinterName : String
) : boolean;
public: bool PrintSetActivePrinter( 
   string* PrinterName
) 
public:
bool PrintSetActivePrinter( 
   String^ PrinterName
) 

Parameters

PrinterName
The name of the new active printer.

Return Value

True if success, else False.
Example
Setting the active printer.
Dim oGdPictureImaging As New GdPictureImaging
Dim sPrinter As String
Dim ActiveFound As Boolean
sPrinter = "GdPicture Printer"
ActiveFound = oGdPictureImaging.PrintSetActivePrinter(sPrinter)
If ActiveFound = True Then
   Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("intput.png")
   If imageId <> 0 Then
      oGdPictureImaging.Print(ImageID)
      oGdPictureImaging.ReleaseGdPictureImage(ImageID)
   Else
      MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
   End If
Else
   MessageBox.show("Printer Not Found")
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members