Re: Open File



""Crash" Dummy" <dvader@xxxxxxxxxxxxx> wrote in message 
news:eTaMb7zJGHA.3120@xxxxxxxxxxxxxxxxxxxxxxx
>I can't even begin to read the OP's code, so I will comment on your 
>comments.
>
>> It seems an odd requirement, you want the user to be able to open a file 
>> on
>> a server from a client browser?
>> They wouldn't be able to see the file so what would the point be?
>
> There is a way to read a file opened on the server using forms and ASP. 
> The
> targeted asp script need only send the data read from the requested file 
> back to
> the client as a response to the submitted form.
>
Yes but the OP was opening a file in it's associated reader, such as an 
Excel file in Excel, how can that be useful?

>> Or do you wish to open a file on the client's machine in which case 
>> you'll
>> need client-side code and reduced security levels on the browser?
>
> You'll need a lot more than "reduced security" to open a file directly 
> with the
> browser. I don't think it can be done. I've tried. I have to use a local 
> server
> and asp scripts to pull that trick off, as described above.
> -- 
> Crash
>
>
It's fairly simple to do. Add the site to trusted zones for instance and 
allow unsafe ActiveX in the security section for that zone.
You can then use the FileSystemObject to open and read text files or the ms 
xml components to read local XML files.


-- 

Joe Fawcett (MVP - XML)

https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5


.



Relevant Pages

  • Re: Using Word Mail Merge feature for custom templates
    ... > You are suggesting that I store the content in XML at server end and when I ... A browser knows to open a ... WordProcessingML file in Word due to the PI Word writes into it. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: HttpRequest Question
    ... browser (that is the result of the XSL transformation) and what you really ... have (that is the original XML file). ... What do you want to do on this XML file? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: opening a client application from a server?
    ... database into my script, generate many csv files, or txt files, or pdf ... files, or xml file, etc., and generate links. ... Acrobat, open a txt file in the browser window, and so on. ... incorporate a Content-Type element in the XML would create a problem. ...
    (comp.lang.perl.misc)
  • Re: Attempt to de-mystify AJAX
    ... you could declare all your variables as Variant. ... the browser, and I still think of that as a mixed blessing. ... XML, which is far from being the most efficient data representation ... done as a fat client, ...
    (comp.databases.pick)
  • Re: Open File
    ... There is a way to read a file opened on the server using forms and ASP. ... targeted asp script need only send the data read from the requested file back to ... the client as a response to the submitted form. ... > need client-side code and reduced security levels on the browser? ...
    (microsoft.public.scripting.vbscript)