Click here to Skip to main content
15,938,022 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I have one of the requirement...i.e..I need to develop a dll in .NET ,in that i need to create excel sheet.But to save the generated excel file,need to through a popup in the browser, from that user can save the file in any location.

Please help on this.


1 solution

If you want to save it at the client, then you need to download the file to the client and let his browser take care of it - you can't force "any browser" to save in any location, or even to bring up a save dialog. You can do it under very, very limited circumstances, but they do not apply to 99.99% of browser and setup combinations.

If you want to save it at the server, then you would need to write your own mock "save as" dialog to allow the user to select the server location - but I really wouldn't as it would be (a) difficult and (b) somewhat of a security risk...
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900