SetClosestValidPaperSize Method (IPrintManager) Send Feedback
See Also 
Length
Length of paper
Width
Width of paper
Sets the size of the paper to a valid size for the printer that is closest to the specified length and width.

Syntax

Visual Basic 
Sub SetClosestValidPaperSize( _
   ByVal Length As System.Double, _
   ByVal Width As System.Double _
) 
C# 
void SetClosestValidPaperSize( 
   System.double Length,
   System.double Width
)
JavaScript 
SetClosestValidPaperSize( 
   Length : Number,
   Width : Number
)
COM native C++ 
HRESULT SetClosestValidPaperSize( 
   DOUBLE Length,
   DOUBLE Width
) 
C++ 
DSRESULT SetClosestValidPaperSize( 
   double Length,
   double Width
) 

Parameters

Length
Length of paper
Width
Width of paper

Remarks

Units (inches or millimeters) for Length and Width are dependent on the closest valid paper size.
 

See Also

Availability

DraftSight V1R1