Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Servlets and the fly likes HELP !!!! Disable Save As in MS Word 2000 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HELP !!!! Disable Save As in MS Word 2000" Watch "HELP !!!! Disable Save As in MS Word 2000" New topic

HELP !!!! Disable Save As in MS Word 2000

Dave Donohoe
Ranch Hand

Joined: May 16, 2000
Posts: 73
Hi there,
I have a servlet that opens a document in word. It runs the WOrd Application & populates the text as I want it to do. I then save the document to a particular location.
I want to stop the user from Saving the Document to any other location than the one I choose.
Is it possible to Disable the "Save As" feature of MS Word?
I am using Windows 2000 & Word 2000.
Any ideas???
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Disable the saveAs feature of MSWord...Not that I am aware of. There might be a way to make it readOnly, that still will not stop them from saving it somewhere else though.


So much trouble in the world -- Bob Marley
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

There is a way, but it involves using VBA to customize the way Word saves that particular document.

Which is beyond the scope of this site.

check out, or

Cindy Chan

Joined: Dec 09, 2001
Posts: 4
Hi Dave
Would you like to share how you open up a word document using a servlet and populate it with text. My current project deals with something like this and currently I have no idea how to do this.
Thanks !
Dave Donohoe
Ranch Hand

Joined: May 16, 2000
Posts: 73
Hi Cindy,
Currently to do this I am using a Java Bean developed by someone in Germany.
Check out this site -
This tells you how to manipulate a word document from within Java.
If you have any more questions, feel free to mail me.
I agree. Here's the link:
subject: HELP !!!! Disable Save As in MS Word 2000
Similar Threads
Java Api for MS Word Table Handling
Disable Save As in IE
Design document
How to open MS Word from Java
password protecting a MS word Document