FitToPages: Boolean;
The FitToPages property determines vertical and horizontal positioning and printing of a workspace in the defined number of pages.
The default property value is True. Determine the number of pages horizontally (PageWidth) and vertically (PageHeight).
If the property is set to False, determine the workspace scale (Scale).
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 := True;
PS.PageHeight := 2;
PS.PageWidth := 3;
(wsp As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the workspace is printed on more than 3 pages by width and 2 pages by height.
See also: