Declaration
Automation:
void  SaveHistory ( [in]   interface IStream  pStream) ;
Native (C++):
HRESULT  SaveHistory ( [in]   interface IStream *  pStream) ;
Parameters
pStreamPointer to a stream object to write history to.
Return Value
S_OK or standard OLE error code.
Remarks
Saves the document's operation history to a given stream object. Complexity: linear-time, depending on the history's complexity.
Examples

A sample implementation of the SaveHistory method

C++Copy Code
HRESULT SaveHistory(IFileDocument *pFileDocument, IStream *pStream)
{
  return pFileDocument->SaveHistory(pStream);
}
    

See Also