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
How to remove redundant listlevel entrys in saved RTF
-
- Posts: 1
- Joined: Thu Apr 13, 2023 9:28 am
-
- Site Admin
- Posts: 17565
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: How to remove redundant listlevel entrys in saved RTF
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).
Call RichViewEdit.DeleteUnusedStyles(True, True, True) after loading RTF (before calling Format).