IWxPageSettings.Scale

Syntax

Scale: Double;

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;
Imports Prognoz.Platform.Interop.Andy;
 
Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    wsp: IWxWorkspace;
    PS: IWxPageSettings;
Begin
    
// Get repository
    mb := Params.Metabase;
    wsp := mb.ItemById[
"WSP"].Edit() As IWxWorkspace;
    PS := wsp.PageSettings;
    PS.FitToPages := 
False;
    PS.Scale := 
0.5;
    (wsp 
As IMetabaseObject).Save();
End Sub;

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

See also:

IWxPageSettings