Page 1 of 1

copy table from office word,the table's size changed smaller

Posted: Thu Mar 03, 2022 5:51 am
by wolf1860
After paste, some cell's text will change to multi lines from single line.The test docx file sent to richview@gmail.com

Re: copy table from office word,the table's size changed smaller

Posted: Thu Mar 10, 2022 1:49 pm
by wolf1860
Please notice this topic:)

Re: copy table from office word,the table's size changed smaller

Posted: Fri Mar 11, 2022 2:23 pm
by Sergey Tkachenko
Sorry, I did not receive this email, please resend.

I only received examples for crude picture and incorrect reading of non breaking spaces.

Re: copy table from office word,the table's size changed smaller

Posted: Sat Mar 12, 2022 3:08 am
by wolf1860
I sent the test file to richview@gmail.com

Re: copy table from office word,the table's size changed smaller

Posted: Sat Mar 12, 2022 8:05 am
by Sergey Tkachenko
Sorry, this problem cannot be fixed.
While table sizes are the same, TRichView uses the screen DPI to format text, while MS Word (I guess) uses some high DPI offscreen canvas. So text may have slightly different widths.

In this example, texts in cells are short and width differences are very small, close to rounding errors.
Even in TRichView, if you format this document in higher DPI (for example, for printing; or if you zoom in the document by increasing DocumentPixelsPerInch property), you will see that text fits a single line.

So, the only recommendation is to make cells slightly wider.

Re: copy table from office word,the table's size changed smaller

Posted: Sat Mar 12, 2022 12:00 pm
by wolf1860
I see:) Thank u!