Wordwrap in tables on screen and in print

General TRichView support forum. Please post your questions here
Post Reply
jwinkl
Posts: 25
Joined: Thu Nov 09, 2006 10:09 am

Wordwrap in tables on screen and in print

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

Post 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)
jwinkl
Posts: 25
Joined: Thu Nov 09, 2006 10:09 am

Post by jwinkl »

OK. Is there a new licence required for ScaleRichView?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Yes, details are in a private message
Post Reply