DocX and Styletemplates with quotes in the name

General TRichView support forum. Please post your questions here
Post Reply
a.weber
Posts: 63
Joined: Wed Mar 02, 2022 7:02 am

DocX and Styletemplates with quotes in the name

Post by a.weber »

Hello Sergey,
after loading a with MS Word saved .docx file with ScaleRichView / RichView and save it back to docx it was not possible to open with Word again.
The problem is that the file contains templates with " in its name and german umlaute. I did look into CRVData.pas WriteSTProperties( ... )
and changed the line:

RVFWrite(Stream,
RVFormatA('<w:name w:val="%s"/>', [RV_MakeOOXMLStrW(s)]));

into - so that " are also quoted and saved.

RVFWrite(Stream,
RVFormatA('<w:name w:val="%s"/>', [RV_ProcessOOXMLStrA(Utf8Encode(s), true, true)]));

André
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: DocX and Styletemplates with quotes in the name

Post by Sergey Tkachenko »

Thank you! It will be fixed in the next update.
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: DocX and Styletemplates with quotes in the name

Post by Sergey Tkachenko »

Fixed in TRichView 22
Post Reply