Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 19th, 2007, 08:46 AM
Udi Udi is offline
Registered User
Join Date: Jan 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to save files on client machine.

In my web application multiple reports are generated and stored on server when user clicks on a button. I need to store these reports on client machine. I am not able to figure out a way do implement this feature. Any help will be appriciated...Thanks in advance...

Old January 22nd, 2007, 11:05 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

The user will need to view/save or download the reports after they are generated. You can't just save a file to a client machine via the browser.

Old January 22nd, 2007, 11:17 AM
Friend of Wrox
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post


Peter is correct, due to security reasons/permission issues, we cannot save a file directly to client's machine. However, options like "Export To Excel" etc can be provided to user wherein he can download the reports.


Fortune favours the brave, so don't regret on missed oppurtunities.
Old January 22nd, 2007, 11:26 AM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

Adding to Mike and Peters posts, you will need to write your data back to the HTTP Stream and give it a type of application/vnd.ms-excel or application/vnd.ms-word. hth.

================================================== =========
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========

Similar Threads
Thread Thread Starter Forum Replies Last Post
loading COM component on client machine hendyhanusin ASP.NET 2.0 Professional 4 June 20th, 2011 02:26 AM
Saving file on client machine balesh ASP.NET 1.0 and 1.1 Professional 1 September 18th, 2006 07:49 AM
Storing cookies on the client machine m_soni21 ASP.NET 1.0 and 1.1 Basics 1 July 6th, 2006 05:07 PM
writing to client machine - PLEASE HELP Toran Classic ASP Databases 2 April 2nd, 2005 03:50 PM
save a file on client machine sumsin ASP.NET 1.0 and 1.1 Basics 1 March 30th, 2005 05:52 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.