2016-11-11 6 views

答えて

0

要件を満たすには、次のコード例を使用してください。これがあなたを助けることを願っています

FindReplaceOptions options = new FindReplaceOptions(); 
Document doc = new Document(MyDir + "in.docx"); 
doc.MailMerge.UseNonMergeFields = true; 
foreach (String item in doc.MailMerge.GetFieldNames()) 
{ 
doc.Range.Replace("{{ " + item + " }}", "<<["+ item + "]>>", options); 
} 

doc.Save(MyDir + "Out.docx"); 

私はAspose as Developerエバンジェリストを使用しています。

関連する問題