Support request from swapna at 10/5/2007 1:58:20 AM

Received : 2007/10/05 01:58:20
Message : hi,
string filename = System.IO.Path.GetTempPath() + Session.SessionID + ".xls";
GridWeb1.WebWorksheets.SaveToExcelFile(filename);
Response.ContentType = "application/vnd.msexcel";
Response.AddHeader("content-disposition", "attachment;filename='" + fileExcel + "'");
Response.WriteFile(filename);
Response.End();
you have given this code for exporting to loacl system.
i have to save this data in particular drive like c:/swapna/
in commandilaog control filter option like that
can we do that


This message was posted using Aspose.Live 2 Forum

Hi,

I think you can use the following line to save the output file to your related folder. You should have complete access rights for the folder.

E.g.,

GridWeb1.WebWorksheets.SaveToExcelFile("C:\\swapna\\abc.txt");

Thank you.