Page 1 of 1

LoadRTF cell width

Posted: Tue May 31, 2016 11:49 am
by angleitner
After loading an RTF file including a table, using TRichView.LoadRTF and TRichView.Format, the widths of the different cells are adapted to their contents.
What is to be done so that these cell widths remain as defined in the file?

Posted: Tue May 31, 2016 12:16 pm
by Sergey Tkachenko
In the current version of TRichView, the component does not support calculation of text width to fit content (only minimal possible width of content is taken into account). This is may be the reason of the difference.

Also, TRichView uses "BestWidth" of all cells into account. MS Word, in some cases, uses only properties of first rows.