how to open pop up asking for open or save when we want to s

Technical support for Spire.XLS

Moderators: iceblue support, Flash, Manager

how to open pop up asking for open or save when we want to s

Postby chaitanya » 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

Re: how to open pop up asking for open or save when we want

Postby amy.zhao » 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.
User avatar
amy.zhao
 
Posts: 2241
Joined: Wed Jun 27, 2012 8:50 am

Re: how to open pop up asking for open or save when we want

Postby Gary.zhang » 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
User avatar
Gary.zhang
 
Posts: 1390
Joined: Thu Apr 04, 2013 1:30 am


Return to Spire.XLS

Who is online

Users browsing this forum: No registered users and 1 guest