How to remove redundant listlevel entrys in saved RTF

General TRichView support forum. Please post your questions here
Post Reply
mickimayer
Posts: 1
Joined: Thu Apr 13, 2023 9:28 am

How to remove redundant listlevel entrys in saved RTF

Post 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
Sergey Tkachenko
Site Admin
Posts: 17281
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: How to remove redundant listlevel entrys in saved RTF

Post 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).
Post Reply