Hey,
I have a Word document that has some placeholders which need to be replaced with HTML. This works fine.
However, I want the resulting text to have the same font as the original placeholder, but I can't get this to work.
So let's say my placeholder is in Arial 11, then the HTML gets inserted (which is any font and any size). The resulting HTML needs to be in Arial 11 as well.
I tried getting the font and size of the original placeholder paragraph by querying the paragraph style (paragraph.GetStyle().CharacterFormat...), but it seems this always returns the default document font (Arial Unicode MS for .doc files and Calibri for .docx files), not the font of the paragraph.
Anyone who can point me in the right direction? Thanks in advance.
Martijn