2022年8月29日

C# 选择文件 选择文件夹 无响应 闪退问题

摘要: 选择文件 OpenFileDialog 使用注释中的即可 private static OpenFileDialog openFileDialog; private static DialogResult result1; /// <summary> /// 打开文件 /// </summary> 阅读全文

posted @ 2022-08-29 11:33 糯米白白 阅读(506) 评论(0) 推荐(0) 编辑

C# Word替换文本

摘要: 引用 Nuget包 Spire.Doc 使用Spire.Doc会在文档开头生成水印 using (Document doc = new Document(templateWordFilePath)) { doc.Replace("oldvalue", "newvalue", true, false) 阅读全文

posted @ 2022-08-29 11:28 糯米白白 阅读(146) 评论(0) 推荐(0) 编辑

C# PDF加密

摘要: 引用 Nuget itext7 using iText.Kernel.Pdf; using System; using System.Collections.Generic; using System.Linq; using System.Runtime; using System.Text; us 阅读全文

posted @ 2022-08-29 11:21 糯米白白 阅读(303) 评论(0) 推荐(0) 编辑

C# 生成压缩包

摘要: 引用 Nuget包 ICSharpCode.SharpZipLib using ICSharpCode.SharpZipLib.Zip; using System; using System.Collections.Generic; using System.Linq; using System.T 阅读全文

posted @ 2022-08-29 11:17 糯米白白 阅读(79) 评论(0) 推荐(0) 编辑

C# 读取XML数据

摘要: 引用 System.Xml using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; na 阅读全文

posted @ 2022-08-29 11:16 糯米白白 阅读(667) 评论(0) 推荐(0) 编辑

C# Word文档转PDF

摘要: 引用 Nuget包 Microsoft.Office.Interop.Word using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.T 阅读全文

posted @ 2022-08-29 11:13 糯米白白 阅读(1606) 评论(0) 推荐(0) 编辑

导航