var path = Server.MapPath("~/doc/demo.doc");
Document doc = new Document(path);
DocumentBuilder builder = new DocumentBuilder(doc);
//builder.Write("张三");
// var repStr = string.Format("&{0}&", "[客户姓名]");
doc.Range.Replace("[客户姓名]", "张三", false, true);
doc.Range.Replace("[姓名]", "李四", false, true);
doc.Range.Replace("[性别]", "男", false, true);
doc.Range.Replace("[年龄]", "18", false, true);

doc.Save(path);

相关文章:

  • 2021-08-18
  • 2022-12-23
  • 2021-12-11
  • 2021-12-22
  • 2021-07-24
猜你喜欢
  • 2022-01-02
  • 2022-01-24
  • 2022-01-26
  • 2021-11-14
  • 2022-02-09
  • 2021-06-13
  • 2022-12-23
相关资源
相似解决方案