Vcl.OleCtnrs.TOleContainer.LoadFromFile
Delphi
procedure LoadFromFile(const FileName: string);
C++
void __fastcall LoadFromFile(const System::UnicodeString FileName);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.OleCtnrs.pas Vcl.OleCtnrs.hpp |
Vcl.OleCtnrs | TOleContainer |
Description
Loads an OLE object from the specified file.
Call LoadFromFile to load an OLE object that was saved using the SaveToFile method. If OldStreamFormat is true, LoadFromFile loads files saved by an TOleContainer object as well as files saved using the current format; if OldStreamFormat is false, LoadFromFile will not load files saved by the library. If there's already an OLE object in the container, it is destroyed and any changes the user made to it are discarded.