IWxWorkspace.PageSettings

Syntax

PageSettings: IWxPageSettings;

PageSettings: Prognoz.Platform.Interop.Andy.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;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Drawing;

 
Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    wsp: IWxWorkspace;
    PS: IWxPageSettings;
Begin
    
// Get workspace
    mb := Params.Metabase;
    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;

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