GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / PrintSetCopies Method
The number of copies to be printed. The new value of the active printer copies setting.
Example





In This Topic
PrintSetCopies Method (GdPictureImaging)
In This Topic
Sets up the printer copies setting of the active printer, that means the number of copies to be printed.
Syntax
'Declaration
 
Public Function PrintSetCopies( _
   ByVal Copies As Short _
) As GdPictureStatus
public GdPictureStatus PrintSetCopies( 
   short Copies
)
public function PrintSetCopies( 
    Copies: Int16
): GdPictureStatus; 
public function PrintSetCopies( 
   Copies : short
) : GdPictureStatus;
public: GdPictureStatus PrintSetCopies( 
   short Copies
) 
public:
GdPictureStatus PrintSetCopies( 
   short Copies
) 

Parameters

Copies
The number of copies to be printed. The new value of the active printer copies 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 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);
}
See Also