摘要: 首先应用中引入Microsoft.Office.Interop.Excel、Microsoft.Office.Interop.Word两个dll,将嵌入式互操作类型设为False, WORD转换成PDF代码如下: #region 将word文档转换成PDF格式 /// <summary> /// 将 阅读全文
posted @ 2017-11-16 10:56 ylit 阅读(6834) 评论(1) 推荐(0)
摘要: Newtonsoft.Json反序列化复杂类型,其中包含接口类型时出错,错误信息:Type is an interface or abstract class and cannot be instantiated。 解决方案:序列化和反序列化时添加JsonSerializerSettings,属性T 阅读全文
posted @ 2017-10-31 15:21 ylit 阅读(2400) 评论(0) 推荐(0)