473,789 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Save file to client system

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

set fso=server.crea teObject("scrip ting.filesystem object")
set ctext=fso.creat etextfile("c:\m ydata.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 7974

Rajani wrote:
How can i save the textarea(retrie ved from DB) data to client system as a textfile.
I am using filesystemobjec t to create a text file with the path

set fso=server.crea teObject("scrip ting.filesystem object")
set ctext=fso.creat etextfile("c:\m ydata.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(retrie ved from DB) data to client system as a textfile.
I am using filesystemobjec t to create a text file with the path

set fso=server.crea teObject("scrip ting.filesystem object")
set ctext=fso.creat etextfile("c:\m ydata.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(retrie ved from DB) data to client system as a textfile.
I am using filesystemobjec t to create a text file with the path

set fso=server.crea teObject("scrip ting.filesystem object")
set ctext=fso.creat etextfile("c:\m ydata.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****@discuss ions.microsoft. com> wrote in message
news:52******** *************** ***********@mic rosoft.com...
How can i save the textarea(retrie ved 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.Conten tType = "text/plain"
Response.AddHea der "Content-Disposition","a ttachment;
filename=mydata .txt"
Response.write <your text data here>
Response.End
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Rajani" <Ra****@discuss ions.microsoft. com> wrote in message
news:52******** *************** ***********@mic rosoft.com...
How can i save the textarea(retrie ved from DB) data to client system as a
textfile.
I am using filesystemobjec t to create a text file with the path

set fso=server.crea teObject("scrip ting.filesystem object")
set ctext=fso.creat etextfile("c:\m ydata.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
6015
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 error. If is possibile to mke save in JAVA then is posible tha make save in any
4
4533
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 tab delimited file or an excel file. The application then saves the file in the correct format. The flip side is for the user to import/upload the file to the server The application must be able to import the excel file and read the contents. I...
4
2852
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 select Save Target as..., but the button might be a more intuitive way.
2
3724
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? filestream.. one of the web classes... ?? -Max
4
4014
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 (aspx). I form the XML at run time from the search fileds specfied by the user and now my aspx page should save it on client machine so that the user can open the same query on next visit of the page. And help is appreciated. Nikhil
8
2700
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 choose) on the users / client file system. I have toyed with a Self-Extracting zip file but the contents of my zip file changes each time it is downloaded so that invalidates the exe file. Also the text file is so small it is a waste to zip it.
4
6266
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
10248
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 the transparency is working properly because if I save the created image to the local hard disk and then view it in a web page or an image editor, the transparency is correct. I can also view the transparency on-the-fly in a Windows.Forms...
12
4779
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 on the client's computer? He/she could do this using the browser (file/save), but I need to have it done by pressing the pushbutton. In my serverside code I get the button-click-event, I also know how to get
0
9511
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10404
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10195
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9016
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6765
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2906
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.