OLE document modified

From: Pavol (anonymous_at_discussions.microsoft.com)
Date: 05/24/04


Date: Sun, 23 May 2004 23:41:04 -0700

Hallo everybody,

I use in my application an OleContainer to maintain Office documents (Word,
Excel) which are in turn saved as Blobs in IB-database. My way to show the
document for user is as follows:

type
 OleDoc: TOleContainer;
 FMemoryStream: TMemoryStream;
...
 OleDoc.LoadFromStream(FMemoryStream); // data from database
 OleDoc.DoVerb(ovPrimary); // set osUIActive state
 OleDoc.Modified := False;

now is the document loaded and ready for editing. The problem is how to
know, if this document was changed by user. Property OleDoc.Modified is
always True when loaded Excel.*** and False when loaded Word.Document. I
want to allow user to decide, if his changes should be saved when closing
document.

Thanks for help or some useful links.
Pavol, Slovakia.