NPOI操做word文檔摘要

1.nuget獲取NPOI命令orm

Install-Package NPOI -Version 2.3.0文檔

2.項目中引入NPOIget

using NPOI.XWPF.UserModel;
using NPOI.OpenXmlFormats.Wordprocessing;io

3.操做word的基本元素操做項目

(1).建立word文檔
 XWPFDocument doc = new XWPFDocument();word

(2).建立段落process

XWPFParagraph p1 = doc.CreateParagraph();new

相關文章
相關標籤/搜索