使用C# 首选在Word文档中定义一个标识 再读取文档替换文本 var testTemp = new Document(); testTemp.LoadFromFile(testTempletPath); testTemp.Replace("{物料编码}", "123456", false, false); testTemp.SaveToFile(savePath, FileFormat.Docx); testTemp.Close(); 完成...