IEaxAnalyzer.LoadCubeFromStream

Fore Syntax

LoadCubeFromStream(Stream: IIOStream );

Fore.NET Syntax

LoadCubeFromStream(Stream: System.IO.Stream);

Parameters

Stream. Stream from which the data will be loaded.

Description

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

Fore Example

Executing the example requires a form, a button named Button1 on this form, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for TabSheetBox. An express report is to be loaded to UiErAnalyzer1. Also the C:\EXPR_C.p5c file containing a saved cube is to be available.

Press the button to start executing this 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 this example cube data from the stream is loaded to the express report. The stream represents the C:\EXPR_C.p5c file.

See also:

IEaxAnalyzer