Vcl.OleCtnrs.TOleContainer.SaveToStream
Delphi
procedure SaveToStream(Stream: TStream);
C++
void __fastcall SaveToStream(System::Classes::TStream* Stream);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.OleCtnrs.pas Vcl.OleCtnrs.hpp |
Vcl.OleCtnrs | TOleContainer |
Description
Saves the OLE object to the specified stream.
Call SaveToStream to save the OLE object. If CopyOnSave is true, SaveToStream first creates a temporary OLE object that compresses redundant data, reducing the information that must be saved. If OldStreamFormat is true, SaveToStream writes the object in a format that can be read by a TOleContainer component.
An OLE object must already be loaded in the container before calling SaveToStream. Otherwise, SaveToStream raises an exception.