Page 1 of 1

Wordwrap in tables on screen and in print

Posted: Fri Jan 20, 2012 7:53 am
by jwinkl
I have a Richview with a table with a defined number of columns, all of the same width (set with Bestwidth) and defined values for CellHPadding and CellHSpacing. Then the Richview is printed out by RVPrint.

However, there seems always to be a slight difference how the table cells handle word wrap in the Richview (i. e on screen) and in the print preview. How can this be overcome?

Posted: Mon Jan 23, 2012 8:04 am
by Sergey Tkachenko
Unfortunately, it is not possible. TRichView is not a WYSIWYG control in relation to printing. Its text is formatted in the screen resolution, while TRVPrint's text is formatted in the printer resolution. Because of this, text width cannot be exactly the same, and different word wrapping is unavoidable.

If you need a WYSIWYG editor, use TSRichViewEdit from ScaleRichView package (note: ScaleRichView does not support page breaks inside table cells yet, so if you have long rows, it might be a problem; otherwise, this is the only solution that we provide for WYSIWYG editing)

Posted: Tue Jan 24, 2012 8:25 am
by jwinkl
OK. Is there a new licence required for ScaleRichView?

Posted: Tue Jan 24, 2012 10:56 am
by Sergey Tkachenko
Yes, details are in a private message