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?
Wordwrap in tables on screen and in print
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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)
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)
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: