Vcl.OleCtnrs.TOleContainer.SaveToFile
Delphi
procedure SaveToFile(const FileName: string);
C++
void __fastcall SaveToFile(const System::UnicodeString FileName);
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 file.
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.