P
paul.meaney
Hi all,
I am creating word documents with .NET and am loading them with our XML
data transformed into WordML using a custom stylesheet. However we have
noticed that when we display the Documents for download on ourwebsite,
if they are opened within IE they are editable within IE. Now we have
password locked the documents programmatically within the saveAs(...)
function so this is fine if users save the file onto their hard drive.
However what I found I cannot do is save the file as readonly.
in my code I set these two paramters:
//variables
object setReadOnlyON = true;
object setReadOnlyOFF = false;
bool readonly = true;
QA_pwd = "*******"
//security settings..
object writePassword = readOnly ? this.QA_pwd : Type.Missing;//password
protect
object readOnlyRecommended = readOnly ? setReadOnlyON :
setReadOnlyOFF;//make read only
and I then call the SaveAs() function. A check of the ReadOnly function
afterwards shows the file is writable.
Any ideas how to save the file as read only and more importantly how we
can stop it being edited and saved in IE?
Paul.
I am creating word documents with .NET and am loading them with our XML
data transformed into WordML using a custom stylesheet. However we have
noticed that when we display the Documents for download on ourwebsite,
if they are opened within IE they are editable within IE. Now we have
password locked the documents programmatically within the saveAs(...)
function so this is fine if users save the file onto their hard drive.
However what I found I cannot do is save the file as readonly.
in my code I set these two paramters:
//variables
object setReadOnlyON = true;
object setReadOnlyOFF = false;
bool readonly = true;
QA_pwd = "*******"
//security settings..
object writePassword = readOnly ? this.QA_pwd : Type.Missing;//password
protect
object readOnlyRecommended = readOnly ? setReadOnlyON :
setReadOnlyOFF;//make read only
and I then call the SaveAs() function. A check of the ReadOnly function
afterwards shows the file is writable.
Any ideas how to save the file as read only and more importantly how we
can stop it being edited and saved in IE?
Paul.