I'm building a web interface to allow users at a medical office to
view/print/fax MS Word documents. However, these documents must be protected
against changes by the viewing users. So I am endeavoring to copy the
original file and then use the Protect method as a locking tool. It seems to
work fine on my XP Pro laptop with Word 2003, but not on our Windows 2003
server with Word 2000.

Interestingly, the Unprotect method does work on the server.

<SCRIPT LANGUAGE="VBScript">
<!--
Sub btnHello_OnClick
MsgBox "Starting..."
Const wdFormatHTML = 8
Const wdAllowOnlyReading = 3
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Set objDoc = objWord.Documents.Open
"C:\website\subfolder\documents\#doc_name#")
MsgBox "#doc_name#"
objDoc.Protect wdAllowOnlyReading, False, "Password"
MsgBox "Locked"
objDoc.SaveAs "C:\website\subfolder\documents\0#doc_name#"
objDoc.Close
objWord.Quit
End Sub
-->
</SCRIPT>

Thanks for any input.