GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / PrintSetPageSelection Method
The custom page range to be set for printing, for example, "1;4;5" to process pages 1, 4 and 5 or "1-5;10" to process pages from 1 to 5 and page 10. Set this parameter to "*" to process all pages of the current document.





In This Topic
PrintSetPageSelection Method (GdPictureImaging)
In This Topic
Sets up the required selection of pages you want to print during the next print process using the active printer.

The specified pages selection will not take into account if you will print using the PrintDialog... methods.

Syntax
'Declaration
 
Public Function PrintSetPageSelection( _
   ByVal CustomRange As String _
) As GdPictureStatus
public GdPictureStatus PrintSetPageSelection( 
   string CustomRange
)
public function PrintSetPageSelection( 
    CustomRange: String
): GdPictureStatus; 
public function PrintSetPageSelection( 
   CustomRange : String
) : GdPictureStatus;
public: GdPictureStatus PrintSetPageSelection( 
   string* CustomRange
) 
public:
GdPictureStatus PrintSetPageSelection( 
   String^ CustomRange
) 

Parameters

CustomRange
The custom page range to be set for printing, for example, "1;4;5" to process pages 1, 4 and 5 or "1-5;10" to process pages from 1 to 5 and page 10. Set this parameter to "*" to process all pages of the current document.

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
Be aware that the defined pages selection will not take into account if you will use the one of the PrintDialog... methods.

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.

See Also