Save file to client system

R

Rajani

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.
 
W

wantmeet

Rajani said:
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.
 
J

John

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.
 
J

John

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.
 
D

Des Perado

Rajani said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top