FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
TCustomFlexCelReport.SaveToStream Method

This is equivalent to the "Run" method, but saves the results to a generic stream while reading the template from the Template property. Use it if you are saving the results to a database, streaming them to a client or whenever you don't want to generate a physical file.

Pascal
procedure SaveToStream(const DataStream: TStream);
C++
__fastcall SaveToStream(const TStream DataStream);
Parameters 
Description 
const DataStream: TStream 
Stream where we want to save the report. 

As an alternative, you can use the method Run without parameters and set the OnGetOutStream event, or call the method Run (TStream, TStream).

Copyright (c) 2002-2008 TMS Software. All rights reserved.
What do you think about this topic? Send feedback!