GdPicture.NET Reference Guide
PrintSetOrientation Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : PrintSetOrientation Method
A member of the PrinterOrientation enumeration.
Defines the page orientation when printing.
Syntax
'Declaration
 
Public Function PrintSetOrientation( _
   ByVal Orientation As PrinterOrientation _
) As GdPictureStatus
public GdPictureStatus PrintSetOrientation( 
   PrinterOrientation Orientation
)
public function PrintSetOrientation( 
    Orientation: PrinterOrientation
): GdPictureStatus; 
public function PrintSetOrientation( 
   Orientation : PrinterOrientation
) : GdPictureStatus;
public: GdPictureStatus PrintSetOrientation( 
   PrinterOrientation Orientation
) 
public:
GdPictureStatus PrintSetOrientation( 
   PrinterOrientation Orientation
) 

Parameters

Orientation
A member of the PrinterOrientation enumeration.

Return Value

A member of the GdPictureStatus enumeration.
Example
Setting the print orientation to portrait.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("intput.png")
If imageId <> 0 Then
   If  oGdPictureImaging.PrintGetOrientation() <> PrinterOrientation.PrinterOrientationPortrait Then
      oGdPictureImaging.PrintSetOrientation(PrinterOrientation.PrinterOrientationPortrait)
   End If
   oGdPictureImaging.Print(ImageID)
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members