🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #392

Re: Download readonly Excel file

#392
From: Paul Furbacher TeamB
Date: Wed, 29 Oct 2003 16:15
47 lines
2711 bytes
In <3f9f5d10@newsgroups.borland.com> Chris wrote:
>  Hi,all
>  
>  In a project , our customer want us to implement such a
>  requirement:
>  
>  when client side download an Excel file from server, the
>  Excel file should be _readonly_. I created Excel file by
>  VBS in the server side, but how to set the Excel file's
>  attribute to be _readonly_ when it is downloaded ?
>  
>  anybody help me?

Whatever you write on the server side will have no 
effect on file permissions on the client side.  
And since you have no way of controlling how IE or
Netscape place the downloaded file onto the user's 
disc, you cannot affect changes to the default 
permissions.  No client side code you might write
can affect this, as far as I know.  It has to do 
with the security features of Java and Web apps.

How about password protecting the Excel file in 
such a way that one doesn't need a password to 
view it, but needs one to edit it.  I have no
idea as to whether this or some other read-only
mechanism is available _inside_ an Excel file.
(I avoid using Excel like I avoid getting the 
plague.)  But that's about the only hope you have 
of answering your client's concerns.  

The other thing is this -- if it's not editable,
why does it have to be an Excel file.  Render
tables in PDF.  Not editable, but viewable.


Paul Furbacher [TeamB]

  Save time, search the archives:
       http://info.borland.com/newsgroups/ngsearch.html
       
  Is it in Joi Ellis's Faq-O-Matic? 
       http://www.visi.com/~gyles19/fom-serve/cache/1.html
 
  Finally, please send responses to the newsgroup only.
  That means, do not send email directly to me.
  Thank you.
Technical Details
Message-ID: <20031029121538004-0500@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f9f5d10@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,37a029e5d739dc0f
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-10-29 09:40:53 PST
User-Agent: Halime (MacOSX)/1.0rc2b
Newsgroups: borland.public.jbuilder.java.api
Message-ID: <20031029121538004-0500@newsgroups.borland.com>
References:  <3f9f5d10@newsgroups.borland.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Subject: Re: Download readonly Excel file
From: Paul Furbacher [TeamB] <pfurbacher@mac.com>
Organization: Reverse Alchemy, Inc.
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68.39.103.120
Date: 29 Oct 2003 09:15:41 -0700
X-Trace: newsgroups.borland.com 1067447741 68.39.103.120 (29 Oct 2003 09:15:41 -0700)
Lines: 47
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail