IModelBox.Export

Syntax

Export: IMetabaseObject;

Description

The Export method exports a model displayed in the component to a regular report.

Comments

The method work results in the object that contains a regular report. This regular report will be opened for edit.

Example

Executing the example requires that the repository contains a form with the following:

Add links to the Metabase, Ms, Report, and Ui system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Obj: IMetabaseObject;
    Rep: IPrxReport;
Begin
    Obj := ModelBox1.Export;
    Rep := Obj As IPrxReport;
    If (Rep <> NullThen
        Rep.SaveToFile("c:\my.ppreport", PrxReportSaveMode.Full);
    End If;
End Sub Button1OnClick;

After executing the example the model displayed in the ModelBox1 component will be transformed into the regular report and exported in the my.ppreport report file.

See also:

IModelBox