Clear;
The Clear method deletes all sheets of the regular report. After deleting a new sheet named Sheet1 is created.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
Sheets: IPrxSheets;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
Sheets := Report.Sheets;
Sheets.Clear;
MObj.Save;
End Sub Main;
After executing the example all sheets of the regular report are deleted and a blank sheet named Sheet1 is created. The identifier of the regular report - Report.
See also: