LoadFromStream(Stream: IIOStream ;[ Options: EaxSaveLoadOptions = 0]);
LoadFromStream(Stream: System.IO.Stream; Options: Prognoz.Platform.Interop.Express.EaxSaveLoadOptions);
Stream. Stream from which the data will be loaded.
Options. Data loading options. This parameter is optional.
The LoadFromStream property loads data to the express report from a stream.
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.ppexpress file, containing a saved express report, 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.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: