File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Help me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic
Author

Help me

Sukhadev Patil
Greenhorn

Joined: Apr 12, 2006
Posts: 12
concerning this regard'In my application, i want to send one MS-WORD file to client side,but only in read-only mode. I am sending this file through IFRAME tag,here i m choosing this file at run time. How can i display this file at browser side only in read-only mode'
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I don't know how to change an MS Word document into a read-only document automatically when it is downloaded. Frankly, I don't understand why you are concerned about making it read-only. The document the user receives in the download is a copy, not the original. The users can change it all they like, and it still won't affect the original.

If you still need to make it read-only, I'd suggest looking at the apache POI project. This project provides an API for manipulating Microsoft format files. Check out the documentation, and you may find a way to do what you need to do.


Merrill
Consultant, Sima Solutions
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help me