469,356 Members | 2,013 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

Save file to client system

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.filesystemobjec t")
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.
Jul 22 '05 #1
5 7772

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.filesystemobjec t")
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.


Jul 22 '05 #2
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.filesystemobjec t")
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.


Jul 22 '05 #3
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.filesystemobjec t")
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.


Jul 22 '05 #4

"Rajani" <Ra****@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.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.
Jul 22 '05 #5
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" <Ra****@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.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.filesystemobjec t")
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.

Jul 22 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Robert Bralic | last post: by
4 posts views Thread by David W. Simmonds | last post: by
4 posts views Thread by Nikhil Tayal | last post: by
4 posts views Thread by Jonny | last post: by
12 posts views Thread by =?Utf-8?B?RnJlZU5FYXN5?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.