【发布时间】:2016-11-07 11:10:51
【问题描述】:
我希望允许用户将邮件合并模板从 MUSTACHE 语法转换为 MERGEFIELD 标签。
我能以某种方式使用 Aspose for .NET 实现这一点吗?
【问题讨论】:
标签: c# .net aspose aspose.words
我希望允许用户将邮件合并模板从 MUSTACHE 语法转换为 MERGEFIELD 标签。
我能以某种方式使用 Aspose for .NET 实现这一点吗?
【问题讨论】:
标签: c# .net aspose aspose.words
请使用以下代码示例将 MUSTACHE 语法转换为 MERGEFIELD 标签。希望这对您有所帮助。
Document doc = new Aspose.Words.Document(MyDir + "in.docx");
doc.MailMerge.UseNonMergeFields = true;
doc.MailMerge.Execute(new string[] { "" }, new string[] { "" });
doc.Save(MyDir + "Out.docx");
我与 Aspose 合作,担任开发人员传道者。
【讨论】: