Hi Fumade,
You said "only within the application window", do you mean "only within
the window application"?
No, I meant only in the WORD application window (instead of a web-browser
window).
But my scenario is that, our site needs to provide Word Document for user
to download.And we need to add permission to the documents(per user)
programmatically.
We want to insert permission in documents without writing to disk,so we
only get a Document object after adding permission.
This isn't going to be possible. Word isn't designed to "stream" its binary
document format.
In Word 2003, it alters that IRM permission will be removed if saved in
xml format.
So IRM only works if document is saved in binary format(.doc), is that
ture?
Yes, that's true. There wouldn't be much point in trying to enforce any
security at that level in an open document format, would there? XML can be
opened and edited in any text editor, after all...
The problem is, you're trying to combine an inherently insecure interface
(web) with a file-oriented, binary protection system. The two just don't
mix. The only alternative that occurs to me would be to provide the
uneditable text sections as graphics files, inserted into the document. Only
the text that can be edited by the particular user is passed as real text.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail