RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleContainer.SaveToStream Method

Saves the OLE object to the specified stream.

Pascal
procedure SaveToStream(Stream: TStream);
C++
__fastcall SaveToStream(TStream 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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!