Table columns wrapping text

General TRichView support forum. Please post your questions here
Post Reply
McColls
Posts: 2
Joined: Fri Jul 13, 2018 12:31 pm

Table columns wrapping text

Post by McColls »

Hi

We have developed an email client using tRichView, HTMLViewer and Clever components. When viewing an email (created in Outlook) the table columns are narrower, resulting in the text being wrapped. We are currently unable to find a way to display the table as intended.

I have attached 2 images showing the source table and how it is displayed in TRichView.

Source Table
SourceTable.png
SourceTable.png (23.03 KiB) Viewed 15443 times
Displayed Table
DisplayedTable.png
DisplayedTable.png (25.6 KiB) Viewed 15443 times
Regards, Pieter
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Table columns wrapping text

Post by Sergey Tkachenko »

Is this the full window width? Maybe the table is narrower because it is fit to the window width?
Can you send me this document as RVF? To find out what is wrong, I need to know how table and column widths, cell paddings and cell spacings are defined.
McColls
Posts: 2
Joined: Fri Jul 13, 2018 12:31 pm

Re: Table columns wrapping text

Post by McColls »

No, it is just a screen shot to indicate the difference between viewing in Chrome/IE and TRichView.
I have been able to fix the problem by setting "WordWrap := False" but that sets it for the whole document.

Is there a way to only turn WordWrap off for only tables?

Thanks, Pieter
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Table columns wrapping text

Post by Sergey Tkachenko »

I am sorry for overlooking your answer/question.

There is no no-wrap setting for a table or table cell, but there is a setting for paragraphs.

Include rvpaoNoWrap in Options of paragraph style.
If you use RichViewActions for UI, you can use TrvActionWordWrap to switch wrapping on/off for the selected paragraphs.
Post Reply