RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleContainer.SaveToFile Method

Saves the OLE object to the specified file.

Pascal
procedure SaveToFile(const FileName: string);
C++
__fastcall SaveToFile(const AnsiString FileName);

Call SaveToFile to save the OLE object. If CopyOnSave is true, SaveToFile first creates a temporary OLE object that compresses redundant data, saving space in the file that is saved. If OldStreamFormat is true, SaveToFile writes a file that can be read by a TOleContainer component.  

An OLE object must already be loaded in the container before calling SaveToFile. Otherwise, SaveToFile raises an exception. 

 

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