IEaxAnalyzeCore.LoadCubeFromStream

Syntax

LoadCubeFromStream(Stream: IIOStream );

Parameters

Stream. Stream from which the data will be loaded.

Description

The LoadCubeFromStream property loads cube data to the express report from the stream.

Example

Executing the example requires a form, a button named Button1 on the form, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for TabSheetBox. The express report should be loaded to UiErAnalyzer1. The file system should also contain the C:\EXPR_C.p5c file with the saved cube.

Press the button to start executing the example.

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_C.p5c", FileOpenMode.Read, FileShare.DenyWrite);
    Expr.LoadCubeFromStream(Fs);
End Sub Button1OnClick;

After executing the example cube data from the stream is loaded to the express report. The stream represents the C:\EXPR_C.p5c file.

See also:

IEaxAnalyzeCore