473,412 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

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 7956

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Robert Bralic | last post by:
Hello, I writed small graphical editor for probabilystic networks in JAVA, but there was problem with making save file inJAVA. I thinked about it and I concluded that Save in JAVA is great...
4
by: Jae | last post by:
I'm writing a web application that exports and imports excel files. The application gets a list of users and their info and displays it in a datagrid .The user then selects to save the file as a...
4
by: David W. Simmonds | last post by:
Is there a way I can have a button on a ASP.NET form that when clicked will allow the user to save the image to a file on the client side? I know that the user can simply rclick the image and...
2
by: Max | last post by:
I need help in vb.net to download a binary file off another web site and save to it to the server. Not from the client. Server to server. Can anyone point me to the right classes to use at least?...
4
by: Nikhil Tayal | last post by:
Is there a way to write a file on the client machine from an aspx page? I've a custom query page and need to store the search criteria specified in an XML file on the user machine from my web page...
8
by: DanB | last post by:
This is probably soooo simple but I can't seem to get it. I have a text file that I want users to download via a web page. I want the file to be saved to a default folder (or one that they...
4
by: Jonny | last post by:
Hello Group How do I open a Save File Dialog from an ASPX page behind a browse button? Any help would be fantastic!! I am using ASP.NET 1.1 using VB.NET as the coding language TIA
4
by: Dale | last post by:
I am creating GIF images with transparent backgrounds on-the-fly for a web app and rendering them by using System.Drawing.Image.Save(Response.OutputStream, ImageType.GIF). I am confident that...
12
by: =?Utf-8?B?RnJlZU5FYXN5?= | last post by:
Hello, the scenario: There's an ASPX page which shows some text and has three buttons at the bottom: Save, Print and Close. Print and close is done by javascript. But how can I save the page...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.