Page 1 of 1

StyleTemplates for Header/Footer using [rvfoSaveStyleTemplatesOnlyNames] option

Posted: Sun May 01, 2022 10:08 pm
by Vitalii
Greetings!
Question about working with TSRichViewEdit and StyleTemplates.

I use the [rvfoSaveStyleTemplatesOnlyNames] option and load the styles from a file. For the main editor (SRV.RichViewEdit), the styles are saved and loaded fine, but not for the Header/Footer. When I open a section for editing, StyleComboBox shows the default style (Normal). Looks like this information does not store in the RVF...

My actions:
1. Create new document - OK
2. Edit text/style in SRV.RichViewEdit - OK
3. Edit text/style in SRV.Header - OK
4. Save styles to RVST - OK
5. Save document in RVF - OK
...
6. Load styles from RVST - OK
7. Load document from RVF - OK
8. Text in SRV.RichViewEdit is formatted correctly and all styles are in place - OK
9. Text in SRV.Header is formatted correctly, but there are no styles (resets to normal) - NOT OK

Also, the Style Inspector does not respond to the Header/Footer. If I start editing section, Style Inspector shows the last style that was in SRV.RichViewEdit.

I feel like there should be a simple solution, but what?

Re: StyleTemplates for Header/Footer using [rvfoSaveStyleTemplatesOnlyNames] option

Posted: Thu May 05, 2022 12:45 pm
by Sergey Tkachenko
I confirm the problem. It will be fixed in the next update (in this week, I hope).

Re: StyleTemplates for Header/Footer using [rvfoSaveStyleTemplatesOnlyNames] option

Posted: Fri May 06, 2022 6:35 pm
by Vitalii
Thanks, I'll wait.

Re: StyleTemplates for Header/Footer using [rvfoSaveStyleTemplatesOnlyNames] option

Posted: Tue May 10, 2022 6:20 pm
by Sergey Tkachenko
Fixed in TRichView 20.2