Page 1 of 1

How to remove redundant listlevel entrys in saved RTF

Posted: Thu Apr 13, 2023 9:30 am
by mickimayer
Hi,

I have a rft file created with a old version of RichView, This file is full of
"listlevel" entrys. Because of that, pharsing is _very_ slow. (6 lines if text uses 1.6Mb)
What I am looking for is a way to remove this, using the new version of TRichView.


Regards,
- Birger

Developer @ enlight AB

Re: How to remove redundant listlevel entrys in saved RTF

Posted: Thu Apr 13, 2023 3:07 pm
by Sergey Tkachenko
Sometimes, when loading RTF or DocX, TRichView adds more list styles than necessary.
Call RichViewEdit.DeleteUnusedStyles(True, True, True) after loading RTF (before calling Format).