Server Error in '/' Application.
保存文件中的错误d:\2016-05-05生产日况表.xls
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: FarPoint.Excel.ExcelException: 保存文件中的错误d:\2016-05-05生产日况表.xls
Source Error:
Line 587:
Line 588: string filename = "d:\\"+TextBox1.Text+"生产日况表.xls";
Line 589: FpSpread1.SaveExcel(filename, FarPoint.Excel.ExcelSaveFlags.NoFlagsSet);//导出到excel
Line 590: }
Line 591: protected void Button3_Click(object sender, EventArgs e)
Source File: d:\xxpt\scrkb\skbcx.aspx.cs Line: 589
Stack Trace:
[ExcelException: 保存文件中的错误d:\2016-05-05生产日况表.xls]
FarPoint.Excel.ExcelFileHandler.Save(String fileName, ExcelSaveFlags saveFlags, String password) +485
cm.a(String A_0, ExcelSaveFlags A_1, String A_2) +72
fu.a(String A_0, Stream A_1, ExcelSaveFlags A_2, ExcelWarningList A_3, String A_4) +213
[ApplicationException: 保存Excel文件时出错]
fu.a(String A_0, Stream A_1, ExcelSaveFlags A_2, ExcelWarningList A_3, String A_4) +430
FarPoint.Web.Spread.FpSpread.SaveExcel(String fileName, ExcelSaveFlags excelSaveFlags, ExcelWarningList warningList, String password) +178
FarPoint.Web.Spread.FpSpread.SaveExcel(String fileName, ExcelSaveFlags excelSaveFlags) +38
skbcx.Button2_Click(Object sender, EventArgs e) in d:\xxpt\scrkb\skbcx.aspx.cs:589
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563 |