473,396 Members | 2,070 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,396 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 7955

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.