6.3.4 Saving a Document

A client application should follow these steps to save a document:

1.Save the data for the document in the document's file.

2.For each object in the document, call the OleSaveToStream function.

3.When the library confirms that all objects have been saved, call the OleSavedClientDoc function.

A client application can call the OleQuerySize function to determine the size of the buffer required to store an object before calling OleSaveToStream.