I am using Aspose word mail merge for converting html to word with MERGEFIELD. The issues is that, while merging the content, if there is any number list (bullets) in the html, the font get changed automatically to Times new roman. I already sets the font as calibri in Word template.
I am using the following C# code-
MemoryStream filestream = new MemoryStream();
string templatefile = @"Aspose\Template.docx";
Document doc = new Document(templatePath);
doc.MailMerge.CleanupOptions = MailMergeCleanupOptions.RemoveUnusedRegions;
doc.MailMerge.CleanupOptions = MailMergeCleanupOptions.RemoveContainingFields;
doc.MailMerge.CleanupOptions = MailMergeCleanupOptions.RemoveUnusedFields;
doc.MailMerge.CleanupOptions |= MailMergeCleanupOptions.RemoveStaticFields;
doc.MailMerge.CleanupOptions |= MailMergeCleanupOptions.RemoveEmptyParagraphs;
doc.MailMerge.FieldMergingCallback = new HandleMergeFieldInsertHtml("Content");
doc.MailMerge.Execute(new string[] { "Title" }, new object[] { ContentFromDB });
doc.Save(filestream, SaveFormat.Docx);
And the template is like-
{ MERGEFIELD Content \* MERGEFORMAT }
Thank you!