IShockWaveFlash.LoadFromStream

Fore Syntax

LoadFromStream(Stream: IIOStream);

Fore.NET Syntax

LoadFromStream(System.IO.Stream);

Parameters

Stream. The stream, from which the Flash object is loaded.

Description

The LoadFromStream method loads the Flash object from the stream that is passed by the Stream parameter.

Fore Example

Sub LoadFlash;
Var
    MB: IMetabase;
    Doc: IDocument;
    Place: IGxRectF;
    Sheet: IPrxTable;
    Fl: IPrxFlash;
Begin
    MB := MetabaseClass.Active;
    Doc := MB.ItemById("FLASH_1").Open(Null).Object As IDocument;
    Place := New GxRectF.Create(1010100100);
    Sheet := PrxReport.ActiveReport.ActiveSheet As IPrxTable;
    Fl := Sheet.TabSheet.Objects.Add("PrxFlash", Place) As IPrxFlash;
    Fl.ShockWaveFlash.LoadFromStream(Doc.GetAsStream);
End Sub LoadFlash;

This example is a regular report macro. After execution of the macro a new Flash object is added to the active list of the regular report. The Flash object is loaded from the Document repository object with the FLASH_1 identifier.

See also:

IShockWaveFlash