RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleContainer.LoadFromFile Method

Loads an OLE object from the specified file.

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

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. 

 

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