PrintSetDuplexMode Method (GdPictureImaging)
Sets up the printer duplex mode setting of the active printer. This property determines whether a page is printed on both sides
(if the printer supports this feature).
'Declaration
Public Function PrintSetDuplexMode( _
ByVal As Duplex _
) As GdPictureStatus
Parameters
- DuplexMode
- A member of the Duplex enumeration. The new value of the active printer duplex mode 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.
Setting basic printer properties.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
Console.WriteLine("Setting image alignment to -top left corner-");
gdpictureImaging.PrintSetAlignment(PrintAlignment.PrintAlignmentTopLeft);
Console.WriteLine("Setting number of copies to -3-");
gdpictureImaging.PrintSetCopies(3);
Console.WriteLine("Setting duplex mode to -Horizontal-");
gdpictureImaging.PrintSetDuplexMode(System.Drawing.Printing.Duplex.Horizontal);
Console.WriteLine("Enabling document collate");
gdpictureImaging.PrintSetCollate(true);
}