Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用epplus在excel中插入新行,格式类似于上面的行!
插入行合并单元格后受到干扰,数据也无法读取
请尽快给我解决方案 谢谢
如果您从第 1 行到第 2 行,则传入您想要数据的位置
currentWorksheet.Cells["A2"].Value = "Totals";
如果您想合并,假设单元格 A2 和 B2 您将执行以下操作
currentWorksheet.Cells["A2:B2"].Merge = true;
如果您需要更多帮助,请提供更多描述性