Page 1 of 1

Table and print width

Posted: Tue Mar 11, 2025 2:37 pm
by tothpaul
Hello,

on a RichView, the customer create a document with a specif tag. This tag is replaced by a Table width some information (the 3rd column on the pictture)

in the RichvView editor everything seems ok with "GUILLAUME" on a second line so the table do not overflow the document width, but in TRVPrint (and on a printer/pdf...) the line do not split and the table is truncated.

how can I avoid that ?

Thanks

Re: Table and print width

Posted: Mon Mar 17, 2025 5:11 pm
by Sergey Tkachenko
In this table, there are some cells that cannot be made narrower.
These are 3 cells containing images, and the cell with text "Nom de naissance: DESMAUX...". The latter cell has fixed BestWidth property (=343 pixels at 96 dpi) and it is the main problem, because this is the widest unshrinkable cell.

You can make the following changes for the nested table containing the text "Nom de naissance: DESMAUX...":
1) Define width of this table = 80% (table.BestWidth = -80), and
2) Define width of the first cell = auto (table.Cells[0,0].BestWidth = 0)

PS: I guess you also set rvtoIgnoreContentWidth in Options of the root table. Otherwise, it would be truncated differently on printing.

Re: Table and print width

Posted: Mon Mar 17, 2025 11:22 pm
by tothpaul
ok, in fact BestWidth is set to 1, and the text paragraph has the option rvpaoNoWrap
what confuse me, is that TRichViewEdit split the line anyway...so I expected to have the same effect when printing.

Re: Table and print width

Posted: Tue Mar 18, 2025 6:44 am
by Sergey Tkachenko
Probably this document was modified before printing, because in the file that you sent to me word-wrapping is not turned off, in the cell width is 343 pixels.