IWxPageSettings.Scale

Syntax

Scale: Double;

Description

The Scale property determines the scale of a printed workspace. The property can have any positive values. For example, the 0.1 value corresponds to 10% of an actual value, whereas the 4 value is to 400% of an actual value.

Example

Executing the example requires that repository contains a workspace with the WSP identifier.

Add links to the Andy, Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    wsp: IWxWorkspace;
    PS: IWxPageSettings;
Begin
    // Get repository
    mb := MetabaseClass.Active;
    wsp := mb.ItemById("WSP").Edit As IWxWorkspace;
    PS := wsp.PageSettings;
    PS.FitToPages := False;
    PS.Scale := 0.5;
    (wsp As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the following parameters of the page are changed: the printing scale will be 50% of the original workspace size.

See also:

IWxPageSettings