Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disable Save As in IE

 
Dave Donohoe
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I have a Servlet that opens a Word Document in MS Internet Explorer.
Does anyone know if there is ANY way that I can disable the 'Save As' feature of IE either using Java or Javascript or anything else for that matter!
Thanks in advance,
D
 
Stanley Tan
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that's possible. But if ever you do find the solution, post it here!
 
Dave Turner
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot directly prohibite the saving of a document that you make available on the internet, when the document isviewed it will most likely be downloaded into the users temporary internet files directory.
However, i think you could open the Word document in a new window with no menu, toolbar and addressbar, you'll need to use javascript ( window.open(....) ) to do this but it should stop most users from saving the document.
Hope this helps
Dave
 
Shubhrajit Chatterjee
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not very sure but if you want to prevent your users from saving the document, then you might use a PDF file with save disabled. I got this idea because I have a pdf copy of Ed Romans EJB book which I am not able to print...(It is print restricted)
------------------
Shubhrajit
 
Fabrizio Gianneschi
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Shubhrajit Chatterjee:
I got this idea because I have a pdf copy of Ed Romans EJB book which I am not able to print...(It is print restricted)

I've downloaded that pdf copy, too. But save is not inhibited. If you look on the security options, nothing concerns saving permissions. I suspect that you can't block the save option on pdf files... but I'm not sure. :-?

------------------
Fabrizio Gianneschi
Sun Certified Programmer for Java2 Platform
 
Dave Donohoe
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help guys, much appriciated.
D
 
Jason Kilgrow
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Dave Donohoe:
Hi there,
I have a Servlet that opens a Word Document in MS Internet Explorer.
Does anyone know if there is ANY way that I can disable the 'Save As' feature of IE either using Java or Javascript or anything else for that matter!
Thanks in advance,
D

This topic has been discussed recently in the JDJList email list. There were a lot of ideas thrown out there. Something that you can do is to protect the document with a password. This won't stop the person from copy/paste the text but it could stop them from saving the document.
Probably the best idea that was discussed was that of creating the document as a pdf file. This can be easily accomplished from Word by printing the document to the Acrobat PDF Writer. I think it's a free download and it looks just like a printer but it allows you to save the document as a pdf file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic