XWPFDocument fileWord = null;
fileWord = new XWPFDocument("要打开的word文件");
//获取到第一个表格
XWPFTable table = fileWord.Tables[0];
int tablesIndex = fileWord.GetPosOfTable(table);
fileWord.RemoveBodyElement(tablesIndex);
NPOI实现Word删除表格
最新推荐文章于 2023-02-10 18:08:32 发布
关键词由优快云通过智能技术生成