1.引用 aspose.words dll
2.word 使用doc
3.给word 模板中添加要替换位置的 书签
1.引用 aspose.words dll 2.word 使用doc 3.给word 模板中添加要替换位置的 书签 string templatePath = Server.MapPath("~" + path);//文档模板物理路径 Document doc = new Document(templatePath); try { Hashtable tables = new Hashtable(); tables.Add("协议编号", "【"+agreeNum+"】"); tables.Add("基金管理人", orgName); tables.Add("基金管理人住所", orgFundCompanyAddr); tables.Add("