GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / PrintSetCollate Method
The new value of the printer collate setting.
Example





In This Topic
PrintSetCollate Method (GdPictureImaging)
In This Topic
Sets up the printer collate setting of the active printer. This property determines, whether the printed document is collated.

Setting it to true will print a complete copy of the document before the first page of the next copy is printed. Setting it to false will print each page by the number of copies specified before printing the next page.

Syntax
'Declaration
 
Public Function PrintSetCollate( _
   ByVal Collate As Boolean _
) As GdPictureStatus
public GdPictureStatus PrintSetCollate( 
   bool Collate
)
public function PrintSetCollate( 
    Collate: Boolean
): GdPictureStatus; 
public function PrintSetCollate( 
   Collate : boolean
) : GdPictureStatus;
public: GdPictureStatus PrintSetCollate( 
   bool Collate
) 
public:
GdPictureStatus PrintSetCollate( 
   bool Collate
) 

Parameters

Collate
The new value of the printer collate 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
Please note that collating is only performed when the number of copies is greater than 1.

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