slow InsertText

General TRichView support forum. Please post your questions here
Post Reply
i.v.kabanof
Posts: 4
Joined: Wed Jan 08, 2020 3:50 pm

slow InsertText

Post by i.v.kabanof »

Hello

I have rtf document with a table, opened in TRichViewEdit.
Lines insertion into the table works fast. Then I insert text into cells with InsertText, or use ApplyStyleConversion on cells, and it takes about 20 seconds to fill the table.
Table size 8 columns * 85 lines, 10 symbols in a cell.
TRichView 12.6.
Can I speed it up somehow ?

Thank you
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: slow InsertText

Post by Sergey Tkachenko »

1) Version 12.6 is an ancient version, many operations were optimized since that.
2) InsertText is an editing method, it was not designed to perform mass operations. Use AddTextNL (or AddNL, if text does not contain tabs and line breaks) to fill the table.
Post Reply