NPOI 有对word读写操作的方法吗

2025-04-15 12:08:14
推荐回答(1个)
回答1:

现在有了,NPOI2.0版本,我的资源里有。简单例子
XWPFDocument doc = new XWPFDocument();
doc.CreateParagraph();//段落
FileStream sw = File.OpenWrite("blank.docx");
doc.Write(sw);
sw.Close();