I am merging some fields in a DOCX document. Some of my fields contain HTML code that I handle with a custom “Html” prefix and process in document.MailMerge.FieldMerging event.
Unfortunately, when the merge is performed, I lose the source font formatting defined in the DOCX file with the one in the HTML fragment inserted in the document (which is normal behavior).
How can I use backup the source field font and apply back after calling:
e.Field.Content.End.LoadText((string)e.Value, new GemBox.Document.HtmlLoadOptions());
Hi Mario,
Thanks for you answer. I don’t see those properties in the HtmlLoadOptions class . In which version did you add those properties?
Thanks,
Omid.