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é
DocX load field gets wrong Font/Style
DocX load field gets wrong Font/Style
- Attachments
-
- field_replaced.docx
- (3.44 KiB) Downloaded 2295 times
-
- field_original.docx
- (21.02 KiB) Downloaded 2322 times
-
- Site Admin
- Posts: 17553
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: DocX load field gets wrong Font/Style
Thank you!
I accepted your code modification.
It will be included in the next update.
I accepted your code modification.
It will be included in the next update.
-
- Site Admin
- Posts: 17553
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: DocX load field gets wrong Font/Style
Foxed in TRichView 22.2
Re: DocX load field gets wrong Font/Style
Ok - tested - works - one point less on the list.