Page 1 of 1

Insert RTF in table cell and multi pages problem

Posted: Wed Dec 30, 2015 9:15 am
by MPICARD
I have develop an application to insert RTF document in Table cell.

for this :
1- I create a Table with 1 Row and 1 Cell at runtime.
2- Then I edit the cell to get the cell editor.
3- I save my RTF document (Form a JEDI JvRichEdit) to a Memory Stream.
4- And I insert the RTF stream in the cell editor.

It works, but when the RTF document exceeds one page, the table cell doesn't continue on the next page and the end of the RTF document is truncates.

So, is it possible to specify that a Table cell can be expanded on next pages when inserting RTF data ?

Or, ist here a simple procedure to copy each RTF lines in new table Rows ?

Posted: Wed Dec 30, 2015 10:48 am
by Sergey Tkachenko
Do you use ScaleRichView?
Unfortunately, ScaleRichView does not support page breaks inside table cells yet, only between rows.

Posted: Wed Dec 30, 2015 11:37 am
by MPICARD
Yes, I use a TSRichViewEdit

1- If I import my RTF document in a TRichViewEdit and then Impot it in a TSRichViewEdit table cell, It will works ?

2- there is a solution to import RTF lines by lines to Table rows ?

Posted: Wed Dec 30, 2015 12:40 pm
by Sergey Tkachenko
1. It does not matter how the document is created or imported, only the final result matters. If there will be a cell longer than page height, ScaleRichView truncates it.

2. Does it make sense to import in a table? You can send me a sample document to richviewgmailcom, may be I will be able to suggest a solution.