win19000

导航

2020年5月3日 #

C#生成word文档,写入内容,带插入表格和格式排版功能(附源码vs2017)

摘要: //钟伟海 1078321412@qq.com public static void CreateWordFile(string filePath) { try { CreateFile(filePath); // _Document wordDoc = wordApp.Documents.Open 阅读全文

posted @ 2020-05-03 22:55 win19000 阅读(866) 评论(0) 推荐(0) 编辑

2019年6月14日 #

C#读取txt文件时中文乱码

摘要: 解决办法 使用GB2312中文字符集 StreamReader reader = new StreamReader(txtUrl, Encoding.GetEncoding(“gb2312”)); 或使用utf-8中文字符集 StreamReader reader = new StreamReade 阅读全文

posted @ 2019-06-14 14:44 win19000 阅读(565) 评论(0) 推荐(0) 编辑