Hello All
I'm using TRichView v 1.9.24 with Turbo Delphi 2006 to display rtf document via LoadRTFFromStream. For a particular document, it is 2M is size and 1.8M of which seems to be header information for fonts, lists, etc. When trying to load this document, it took 5-6 minutes in TRVRTFReader.Parse. I loaded the same document in another non Delphi rtf viewer, it took no time to display it.
Any ideas/suggestions for this?
Thanks
TCustomRichView.LoadRTFFromStream Slowness
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
That another rtf viewer may just ignore all this header info, and it displays a text alternative to list markers (even the standard RichEdit does not support MS Word's way of saving bullets&numbering and loads them as a plain text followed by tab).
If this RTF file was created by TRichView, call DeleteUnusedStyles(True,True, True) after loading and resave.
If this RTF file was created by TRichView, call DeleteUnusedStyles(True,True, True) after loading and resave.