IGxPageSettings.Assign

Syntax

Assign(Source: IGxPageSettings);

Parameters

Source - source of page settings.

Description

The Assign method sets page parameters in accordance with the parameters passed by the Source parameter.

Example

Sub Main;

Var

MB: IMetabase;

MObj, MObj1: IMetabaseObject;

Report, Report1: IPrxReport;

PageSet, PageSet1: IGxPageSettings;

Begin

MB:=MetabaseClass.Active;

MObj:=MB.ItemById("Report").Edit;

MObj1:=MB.ItemById("Report1").Bind;

Report:=MObj As IPrxReport;

Report1:=MObj1 As IPrxReport;

PageSet:=Report.ActiveSheet.PageSettings;

PageSet1:=Report1.ActiveSheet.PageSettings;

PageSet.Assign(PageSet1);

MObj.Save;

End Sub Main;

After executing the example page settings identical with the parameters of the regular report with the Report1 identifier are set for the regular report with the Report identifier.

See also:

IGxPageSettings