Discuss this help topic in SecureBlackbox Forum
Work with streams in structured storage
Compound Storage format, used internally in MS Office binary files, is similar to the filesystem. It contains substorages and entries (like directories and files on the filesystem).
First you need to access the storage to get an TElCompoundFileStorage object. Then use TElCompoundFileStorage.RootEntry property to get the reference to the root entry, which is of TElCompoundFileStorageEntry type.
To enumerate objects in the entry use its GetFirstChild() and GetNextEntry() methods.
To create and delete substorages use CreateSubStorage() and DeleteSubStorage() methods.
To create and delete streams with data use CreateStream() and DeleteStream() methods.
To read and write data from/to the stream see this how-to article.