IPrxReport.LoadFromFile

Syntax

LoadFromFile(FileName: String);

Parameters

FileName - name and path of a regular report file.

Description

The LoadFromFile method loads regular report from file passed by the FileName parameter.

Example

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:

IPrxReport