How can i save the textarea(retrieved from DB) data to client system as a
textfile.
I am using filesystemobject to create a text file with the path

set fso=server.createObject("scripting.filesystemobject")
set ctext=fso.createtextfile("c:\mydata.txt",true)
ctext.close
set ctext=nothing
set fso=nothing

But it is storing in the server cwebserver c:\ drive)
My users will access simultaneously in my LAN. They use these textfiles to
print in DOS mode. Coz it contains large and formated data and to print
faster.
How can i store the generated output to the client system only instead of
server. B'coz the data generated is diff for each user.

I have to print only in DOS mode and to be at client system.

Re: Save file to client system by wantmeet

wantmeet
Thu Dec 16 00:49:22 CST 2004


Rajani wrote:
> How can i save the textarea(retrieved from DB) data to client system
as a
> textfile.
> I am using filesystemobject to create a text file with the path
>
> set fso=server.createObject("scripting.filesystemobject")
> set ctext=fso.createtextfile("c:\mydata.txt",true)
> ctext.close
> set ctext=nothing
> set fso=nothing
>
> But it is storing in the server cwebserver c:\ drive)
> My users will access simultaneously in my LAN. They use these
textfiles to
> print in DOS mode. Coz it contains large and formated data and to
print
> faster.
> How can i store the generated output to the client system only
instead of
> server. B'coz the data generated is diff for each user.
>
> I have to print only in DOS mode and to be at client system.


Re: Save file to client system by John

John
Thu Dec 16 02:35:07 CST 2004

You have to save the file to server and then, transfer to client.
asp is can not access client system directly. ASP is Active [Server]
Script.

Rajani wrote:
> How can i save the textarea(retrieved from DB) data to client system
as a
> textfile.
> I am using filesystemobject to create a text file with the path
>
> set fso=server.createObject("scripting.filesystemobject")
> set ctext=fso.createtextfile("c:\mydata.txt",true)
> ctext.close
> set ctext=nothing
> set fso=nothing
>
> But it is storing in the server cwebserver c:\ drive)
> My users will access simultaneously in my LAN. They use these
textfiles to
> print in DOS mode. Coz it contains large and formated data and to
print
> faster.
> How can i store the generated output to the client system only
instead of
> server. B'coz the data generated is diff for each user.
>
> I have to print only in DOS mode and to be at client system.


Re: Save file to client system by John

John
Thu Dec 16 03:04:40 CST 2004

You have to save the file to server and then, transfer to client.
asp is can not access client system directly. ASP is Active [Server]
Script.

Rajani wrote:
> How can i save the textarea(retrieved from DB) data to client system
as a
> textfile.
> I am using filesystemobject to create a text file with the path
>
> set fso=server.createObject("scripting.filesystemobject")
> set ctext=fso.createtextfile("c:\mydata.txt",true)
> ctext.close
> set ctext=nothing
> set fso=nothing
>
> But it is storing in the server cwebserver c:\ drive)
> My users will access simultaneously in my LAN. They use these
textfiles to
> print in DOS mode. Coz it contains large and formated data and to
print
> faster.
> How can i store the generated output to the client system only
instead of
> server. B'coz the data generated is diff for each user.
>
> I have to print only in DOS mode and to be at client system.


Re: Save file to client system by Des

Des
Thu Dec 16 05:58:02 CST 2004


"Rajani" <Rajani@discussions.microsoft.com> wrote in message
news:52084129-5F1D-4C70-826A-C14BA62BA394@microsoft.com...
> How can i save the textarea(retrieved from DB) data to client system as a
> textfile.

You can't. It would be a fine way for virus writers and other vermin to
disseminate their stuff if a browser could walk all over our hard disks at
the client end.
You will have to get the end-user himself to take a positive download action
to achieve a save to his hard disk.



Re: Save file to client system by Mark

Mark
Thu Dec 16 10:18:16 CST 2004

The following should prompt the user to save a file. Also see
http://www.aspfaq.com/show.asp?id=2161

Response.ContentType = "text/plain"
Response.AddHeader "Content-Disposition","attachment;
filename=mydata.txt"
Response.write <your text data here>
Response.End


--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com


"Rajani" <Rajani@discussions.microsoft.com> wrote in message
news:52084129-5F1D-4C70-826A-C14BA62BA394@microsoft.com...
> How can i save the textarea(retrieved from DB) data to client system as a
> textfile.
> I am using filesystemobject to create a text file with the path
>
> set fso=server.createObject("scripting.filesystemobject")
> set ctext=fso.createtextfile("c:\mydata.txt",true)
> ctext.close
> set ctext=nothing
> set fso=nothing
>
> But it is storing in the server cwebserver c:\ drive)
> My users will access simultaneously in my LAN. They use these textfiles to
> print in DOS mode. Coz it contains large and formated data and to print
> faster.
> How can i store the generated output to the client system only instead of
> server. B'coz the data generated is diff for each user.
>
> I have to print only in DOS mode and to be at client system.
>
>