• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Disable Save As in IE

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think that's possible. But if ever you do find the solution, post it here!
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your help guys, much appriciated.
D
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic