LoadFromFile(FileName: String);
FileName - name and path of a regular report file.
The LoadFromFile method loads regular report from file passed by the FileName parameter.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
Report.LoadFromFile("c:\Report.ppreport");
MObj.Save;
End Sub Main;
After executing the example sheets from the Report.ppreport file are inserted into the regular report with the Report identifier.
See also: