if (fileName == "") return ""; var CurrentRow = 0; Workbook work = new Workbook(fileName); var sheet = work.Worksheets[0]; string name = ""; if (sheet != null) { name = sheet.Name; //获取建设期 var cp = 10; var rowCount = sheet.Ce
1.导入NPOI.dll 2.添加类NPOIExcel.cs using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.OleDb; using System.IO; using System.Drawing; using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using NPOI.XSSF.U
Excel里使用VBA对已经合并的单元格添加注释,直接使用AddComment会报: 运行时错误 '1004':应用程序定义或者对象定义错误 找了很多文章都没找到怎么解决,最后发现在AddComment之前,先ClearComments一下,就好了 Excel using vba to add comment to a merged cell if occur runtime error 1004, before invoking addcomment, first invoke ClearC