.Net
CCodeFm
这个作者很懒,什么都没留下…
展开
-
asp.net core 使用npoi读取doc文件报'Windows-1252' is not a supported encoding name错误的解决方法
在使用npoi导出doc文件时执行到 var document = new HWPFDocument(formFile.OpenReadStream()); 报'Windows-1252' is not a supported encoding name错误 解决方法 在这段代码上面加入 var ep = CodePagesEncodingProvider.Instance; Enco...原创 2019-07-13 12:02:14 · 1081 阅读 · 0 评论 -
c# word转为html的方法(不需安装office)
在c#中,比较常用的word文件转为html的方法是采用Microsoft.Office.Interop.Word包,但是使用这种方法需要在服务器上安装office。 翻看github找到了一种不需要安装office,并且总体效果还算不错的方法,Mammoth 在Nuget上进行安装 Install-Package Mammoth 使用方法很简单 using Mammoth; va...原创 2019-07-30 18:00:06 · 3265 阅读 · 0 评论