SetPrintScale
Description
Use this method to specify the scale to be used during printing - this is print scaling, not view zooming.
The IE 7 style template is required for this method to have any effect.
Syntax
printing.SetPrintScale(lScale)
Parameter | Description |
---|---|
lScale |
(Number) The print scale to use, expressed as a percentage. The value must be either
less than zero or between 30 and 999 or it will be ignored.
Values less 0 than denote ‘scale to fit’ where, if necessary, the content is scaled to fit the width of the paper - if scaling is not necessary to fit, 100% scaling is used. -1 means the smallest scale factor to use will be 30%. For ScriptX 8 or later, other negative values denote the (absolute value) smallest factor to use. So, for example, -15 means a smallest scale factor of 15%. |
Example
function startPreview() {
// force print scale 100%, no scale to fit
factory.printing.SetPrintScale(100);
factory.printing.Preview();
}