Prod.: Engine, ver.: 6018, ID: 60001177, Wish : frmPrinterManager dialog property to set the maximum width and height of paper

Wish : frmPrinterManager dialog property to set the maximum width and height of paper

Article60001177
TypeWish
ProductEngine
Version6018
Date Added6/28/2010
FixedYes [6/29/2010]
Submitted byFlorian Rappel
Keywords

Subject

frmPrinterManager dialog property to set the maximum width and height of paper

Summary

Is it possible to add to the frmPrinterManager dialog a property that will limit the maximum width and height of the paper ?

Solution

Added in 6019.

A new static propert has been added to the Printer manager as follows:

Get/Set a rectangle value that represents the maximum width and height for papersize in hundrends of Inches.
 
Note:Default value is a 0,0,0,0 rectangle which means unlimited paper size. If there are positive values in the width and height of this property
then the user is limited into these values.
 

    public static Rectangle FormMaximumPaperSize

This property can be used like this : VectorDraw.Professional.Dialogs.frmPrintManager.FormMaximumPaperSize = new Rectangle(0, 0, 20000, 20000) // limit the papersize to 200 inch

Which means that the maximum paper that can be put by the user is 5080x5080 mm Or 200x200 Inches.
Note that the property is in hundrends of inches that explains the above values.

This property is not available in the VDF wrapper component (vdraw.ocx).