Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.
Fri May 31, 2013 10:33 am
how to open pop up asking for open or save when we want to save an excel file.
could you please let me know
-
chaitanya
-
- Posts: 12
- Joined: Thu May 16, 2013 10:42 am
Mon Jun 03, 2013 11:13 am
Dear chaitanya,
Thanks for your inquiry.
Are you working in asp.net web application? If so, please try SaveToHttpResponse() method, and then you will get a dialog box which is asking for open or save. I attached sample code below. If not, please tell us the platform you are working.
- Code: Select all
Workbook workbook = new Workbook();
workbook.Version=ExcelVersion.Version2007;
workbook.Worksheets[0].Range["A1"].Text = "Hello Word";
workbook.SaveToHttpResponse("ss.xlsx",Response,HttpContentType.Excel2007);
Regards,
Amy
E-iceblue support team.
-
amy.zhao
-
- Posts: 2774
- Joined: Wed Jun 27, 2012 8:50 am
Thu Jun 06, 2013 9:21 am
Hello,
Has the code provided by Amy resolved the issue? Could you please update the thread if convenience?
If there are any questions, welcome to get it back to us.
Thanks,
Gary
E-iceblue support team
-
Gary.zhang
-
- Posts: 1380
- Joined: Thu Apr 04, 2013 1:30 am