Drawing > Drawing Assembly Interfaces > IGxPageSettings > IGxPageSettings.Assign
Assign(Source: IGxPageSettings);
Source. Page settings source.
The Assign method determines page settings according to the settings passed by the input parameter.
Executing the example requires that the repository contains two regular reports with the REPORT and REPORT1 identifiers.
Sub UserProc;
Var
MB: IMetabase;
Report, Report1: IPrxReport;
PageSet, PageSet1: IGxPageSettings;
Begin
MB := MetabaseClass.Active;
Report := MB.ItemById("Report").Edit As IPrxReport;
Report1 := MB.ItemById("Report1").Bind As IPrxReport;
PageSet := Report.ActiveSheet.PageSettings;
PageSet1 := Report1.ActiveSheet.PageSettings;
PageSet.Assign(PageSet1);
(Report As IMetabaseObject).Save;
End Sub UserProc;
After executing the example page settings are set for the active sheet of the first regular report according to settings of the active sheet of the second regular report.
See also: