GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / PrintSetUserPaperSize Method
The custom paper width to be used, in inches.
The custom paper height to be used, in inches.





In This Topic
PrintSetUserPaperSize Method (GdPictureImaging)
In This Topic
Sets up a custom paper size to be used by the active printer.
Syntax
'Declaration
 
Public Function PrintSetUserPaperSize( _
   ByVal PaperWidth As Single, _
   ByVal PaperHeight As Single _
) As GdPictureStatus
public GdPictureStatus PrintSetUserPaperSize( 
   float PaperWidth,
   float PaperHeight
)
public function PrintSetUserPaperSize( 
    PaperWidth: Single;
    PaperHeight: Single
): GdPictureStatus; 
public function PrintSetUserPaperSize( 
   PaperWidth : float,
   PaperHeight : float
) : GdPictureStatus;
public: GdPictureStatus PrintSetUserPaperSize( 
   float PaperWidth,
   float PaperHeight
) 
public:
GdPictureStatus PrintSetUserPaperSize( 
   float PaperWidth,
   float PaperHeight
) 

Parameters

PaperWidth
The custom paper width to be used, in inches.
PaperHeight
The custom paper height to be used, in inches.

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.
See Also