出错内容:
错误: 由于出现错误 c00ce514 而导致此项操作无法完成。
相关代码如下:
System.IO.MemoryStream ms = new System.IO.MemoryStream();
FpSpreadMonthExecution.SaveExcel(ms, FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
Response.Clear();
Response.ContentType = "application/VND.ms-excel";
Response.AddHeader("Content-Disposition", "attachment;filename=" + strExportName + ".xls");
Response.BinaryWrite(ms.ToArray());
ms.Flush();
ms.Close();
Response.End(); |
|