C# excel 新建工作表出现异常来自 HRESULT:0x800A03EC。请教各位大神啊。 90
Applicationapp=newApplication();Workbookwbook=app.Workbooks.Open(System.Web.HttpConte...
Application app = new Application();
Workbook wbook = app.Workbooks.Open(System.Web.HttpContext.Current.Server.MapPath("excel\\1\\报表.xlsx"), Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value);
wbook.Worksheets.Add(Missing.Value, "工作表名", Missing.Value, Missing.Value);
代码最后一行报错
操作excel别的都没问题啊 展开
Workbook wbook = app.Workbooks.Open(System.Web.HttpContext.Current.Server.MapPath("excel\\1\\报表.xlsx"), Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value);
wbook.Worksheets.Add(Missing.Value, "工作表名", Missing.Value, Missing.Value);
代码最后一行报错
操作excel别的都没问题啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询