IWxWorkspace.PageSettings

Syntax

PageSettings: IWxPageSettings;

Description

The PageSettings property determines workspace page settings.

Example

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

Add links to the Andy, Drawing, Metabase system assemblies.

Sub Userproc;
Var
    mb: IMetabase;
    wsp: IWxWorkspace;
    PS: IWxPageSettings;
Begin
    // Get workspace
    mb := MetabaseClass.Active;
    wsp := mb.ItemById("WSP").Edit As IWxWorkspace;
    PS := wsp.PageSettings;
    PS.FitToPages := False;
    PS.Scale := 0.5;
    //Save changes
    (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:

IWxWorkspace