GdPicture.NET Reference Guide
PrintSetOrientation Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : PrintSetOrientation Method
A member of the PrinterOrientation enumeration. The new value of the active printer orientation setting.
Sets up the printer orientation setting of the active printer. This property determines 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. The new value of the active printer orientation setting.

Return Value

A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.

We strongly recommend always checking this status first.

Remarks
Just to remind you that the active printer is the printer identified by the PrintGetActivePrinter method or set by the PrintSetActivePrinter method and it is dedicated to executing all subsequent print jobs using this class as well as utilizing all by you altered printer settings.
Example
Setting basic printer properties.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    Console.WriteLine("Setting printer color mode to -monochrome/shades of BW-");
    gdpictureImaging.PrintSetColorMode(PrinterColorMode.PrinterColorModeGray);
 
    Console.WriteLine("Setting paper orientation to -portrait-");
    gdpictureImaging.PrintSetOrientation(PrinterOrientation.PrinterOrientationPortrait);
 
    Console.WriteLine("Setting printing quality to -draft-");
    gdpictureImaging.PrintSetQuality(PrintQuality.PrintQualityDraft);
}
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members