LoadFromStream(Stream: IIOStream);
LoadFromStream(System.IO.Stream);
Stream. The stream, from which the Flash object is loaded.
The LoadFromStream method loads the Flash object from the stream that is passed by the Stream parameter.
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(10, 10, 100, 100);
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: