Dear friends at Syncfusion,
in our use case, we get input from users using Syncfusion Rich Text Editor. We save the xhtml in db and later want to insert it into a word document, where it replaces specific tags. We accomplish it using following code:
public void SetHTMLByTag(WordDocument templateForInstering, String Tag)
{
using (WordDocument replaceDoc = new WordDocument())
{
IWSection htmlsection = replaceDoc.AddSection();
string htmlstring = this.GetStringValueByTag(Tag);
htmlstring = Tools.ReplaceBrs(htmlstring);
htmlsection.Body.InsertXHTML(htmlstring);
templateForInstering.Replace(Tag, replaceDoc, false, false);
replaceDoc.Close();
}
}
This works great.
However, we cannot find a way to set a font style for the inserted html (we would like to use calibri).
Is it possible to accomplish this somehow?
Any help would be greatly appreciated.
Thank you in advance,
Petr