Eager-Learner wrote:
Through window.open or window.showmodaldialog, I want to open a word
or excel document in Print Preview mode. Bcos I don't want the user to
make any changes or save it but the user can ONLY VIEW OR take a print
out. Can anyone help me out ?
Thanks in advance for any help / guideline
As for print preview, if it can be done at all it will be IE only and
no one would like to read a document that way. If you want to protect
your document from tampering:
1. Save the document as read-only and password protect it (though this
can be easily circumvented because Word's read only doesn't protect
the document very well at all)
2. Save your document as a read-only PDF - it can't be copy/pasted and
is much harder (nearly impossible) to open and edit than Word
documents.
But neither of the above will guarantee that your document won't be
tampered with using other means, then turned into a Word document that
is almost indistinguishable from the original. The best way is to
expect that someone *will* do it and incorporate checks to detect it.
--
Rob