IEaxAnalyzer.LoadFromStream

Syntax

LoadFromStream(Stream: IIOStream ;[ Options: EaxSaveLoadOptions = 0]);

Parameters

Stream. Stream from which the data will be loaded.

Options. Data loading options. This parameter is optional.

Description

The LoadFromStream property loads data to the express report from a stream.

Example

Executing the example requires a form, a button named Button1 on the form, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 used as a data source for TabSheetBox. An express report should be loaded to UiErAnalyzer1. The file system should also contain the C:\EXPR.ppexpress file containing the saved express report.

The example is executed on clicking the button.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    mb: IMetabase;
    Expr: IEaxAnalyzer;
    Fs: IFileStream;
Begin
    mb := MetabaseClass.Active;
    Expr := UiErAnalyzer1.ErAnalyzer;
    Fs := 
New FileStream.Create("C:\EXPR.ppexpress", FileOpenMode.Read, FileShare.DenyWrite);
    Expr.LoadFromStream(Fs);
End Sub Button1OnClick;

After executing the example data from the stream is loaded to the express report. The stream represents the C:\EXPR.ppexpress file.

See also:

IEaxAnalyzer