GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / PrintGetOrientation Method
Example





In This Topic
PrintGetOrientation Method (GdPictureImaging)
In This Topic
Returns the printer orientation setting of the active printer. This property determines the page orientation when printing.
Syntax
'Declaration
 
Public Function PrintGetOrientation() As PrinterOrientation
public PrinterOrientation PrintGetOrientation()
public function PrintGetOrientation(): PrinterOrientation; 
public function PrintGetOrientation() : PrinterOrientation;
public: PrinterOrientation PrintGetOrientation(); 
public:
PrinterOrientation PrintGetOrientation(); 

Return Value

A member of the PrinterOrientation enumeration. The value of the active printer orientation setting.
Remarks
It is recommend to use the GetStat method or the PrintGetStat method to identify the specific reason for the method's failure, if any.

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
Showing basic printer settings on the screen.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    Console.WriteLine("Printer settings information:");
    Console.WriteLine("Printer color mode: {0}", gdpictureImaging.PrintGetColorMode().ToString());
    Console.WriteLine("Paper orientation: {0}", gdpictureImaging.PrintGetOrientation().ToString());
    Console.WriteLine("Printing quality: {0}", gdpictureImaging.PrintGetQuality().ToString());
}
See Also