OLE document modified
From: Pavol (anonymous_at_discussions.microsoft.com)
Date: 05/24/04
- Next message: Igor Tandetnik: "Re: OLE document modified"
- Previous message: ali mehrolhassani: "full justify from right align in richedit control"
- Next in thread: Igor Tandetnik: "Re: OLE document modified"
- Reply: Igor Tandetnik: "Re: OLE document modified"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Igor Tandetnik: "Re: OLE document modified"
- Previous message: ali mehrolhassani: "full justify from right align in richedit control"
- Next in thread: Igor Tandetnik: "Re: OLE document modified"
- Reply: Igor Tandetnik: "Re: OLE document modified"
- Messages sorted by: [ date ] [ thread ]