Insert RTF in table cell and multi pages problem

General TRichView support forum. Please post your questions here
Post Reply
MPICARD
Posts: 3
Joined: Mon Jul 20, 2015 11:07 am

Insert RTF in table cell and multi pages problem

Post 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 ?
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Do you use ScaleRichView?
Unfortunately, ScaleRichView does not support page breaks inside table cells yet, only between rows.
MPICARD
Posts: 3
Joined: Mon Jul 20, 2015 11:07 am

Post 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 ?
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply