Number of characters in a cell to wrap text
Posted: Fri Aug 09, 2013 7:36 am
Good afternoon.
It is necessary to solve this question.
I fill in the runtime template that contains a table with a fixed set of rows and columns. So, I have to write a long text in a cell of a specific column with word-by rows. I specify: hyphenation should not be inside the cell, changing its height, and in the following lines.
That is, I need to pre-calculate the number of characters from my text for each table cell. Given the font and font settings. Something like GetTextExtentExPoint of API Win32.
The work is implemented on the basis of your example RvfEditor.
Thank you in advance for your reply.
It is necessary to solve this question.
I fill in the runtime template that contains a table with a fixed set of rows and columns. So, I have to write a long text in a cell of a specific column with word-by rows. I specify: hyphenation should not be inside the cell, changing its height, and in the following lines.
That is, I need to pre-calculate the number of characters from my text for each table cell. Given the font and font settings. Something like GetTextExtentExPoint of API Win32.
The work is implemented on the basis of your example RvfEditor.
Thank you in advance for your reply.