DocX load field gets wrong Font/Style
Posted: Mon Jan 08, 2024 12:48 pm
Hello,
some of our documents with fields gets a wrong font and style after substition. I found that these fields have repeated format commands inside the docx XML - Word seems to ignore them and use only the first? I have modifed RV docx reader the same way - it seems to work - can you check this please?
The expression VERT_ORT is formated as "Arial 10"
After a load / save with RichView its a "Times New Roman" 12 if I investigate the docx XML I can see that there are some style informations with Times New Roman assigned to this field - but in Word I never see this formating - also if I have select the whole text of this document and assign a new font - the result stays the same this single entry "vert_ort" turns into
"Times New Roman".
(As private message I sent you my modified RVDocXReader.pas - with my WorkAround to read only the first CharProps entry.)
With best regards
André
some of our documents with fields gets a wrong font and style after substition. I found that these fields have repeated format commands inside the docx XML - Word seems to ignore them and use only the first? I have modifed RV docx reader the same way - it seems to work - can you check this please?
The expression VERT_ORT is formated as "Arial 10"
After a load / save with RichView its a "Times New Roman" 12 if I investigate the docx XML I can see that there are some style informations with Times New Roman assigned to this field - but in Word I never see this formating - also if I have select the whole text of this document and assign a new font - the result stays the same this single entry "vert_ort" turns into
"Times New Roman".
(As private message I sent you my modified RVDocXReader.pas - with my WorkAround to read only the first CharProps entry.)
With best regards
André