I am having FarPoint Web Spread and a Panel with a text box [T1] in my webpage. I am using SaveExcel method of FpSpread to write the contents into Excel.
Is there any way by which i can write the contents of text box [T1] into the excel.
Below is the code I am using for export to excel -
Response.Clear();
Response.ContentType = "application/vnd.ms-excel";
Response.AppendHeader("Content-Disposition", "Attachment; filename=Export.xls;");
Response.Charset = "";
using (MemoryStream ms = new MemoryStream())
{
FpSpread1.ActiveSheetView.Protect = false;
FpSpread1.SaveExcel(ms, FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
ms.WriteTo(Response.OutputStream);
}
Response.End();