Issue with Text Formatting when Copying from RichEdit

General TRichView support forum. Please post your questions here
Post Reply
tomr
Posts: 62
Joined: Wed Dec 09, 2020 9:36 am

Issue with Text Formatting when Copying from RichEdit

Post by tomr »

Hi Sergey,
I have encountered an issue that I can reproduce in the RichViewActionTest demo.
Please type the following text:
Example Text.png
Example Text.png (3.37 KiB) Viewed 107 times
After copying this text and pasting it into Microsoft Word or Outlook, the formatting/display appears differently.
Text Pasted in Office.png
Text Pasted in Office.png (2.08 KiB) Viewed 107 times
However, if I type the same text directly in Word and then paste it into a RichEdit control, everything works as expected.
Text Written in Office.png
Text Written in Office.png (1.99 KiB) Viewed 107 times
Text from Office pasted into Richedit.png
Text from Office pasted into Richedit.png (19.34 KiB) Viewed 107 times
Is there anything I can do to avoid or fix this behavior?

Also, if possible, could you please take a look at my responses regarding the other topics as well?
https://www.trichview.com/forums/viewto ... 134#p49134
https://www.trichview.com/forums/viewtopic.php?t=15388

Kind regards,
Tom
Sergey Tkachenko
Site Admin
Posts: 18126
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Issue with Text Formatting when Copying from RichEdit

Post by Sergey Tkachenko »

I confirm the problem.

TRichView saves Unicode bullet character in RTF as \bullet keyword.
But MS Word does not understand this keyword in list definition.
It's strange, maybe this is a glitch of the new versions of MS Word. I believe that it worked correctly when I checked it last time, but I cannot say for sure.
I'll fix it in the next update. Let me know if you need a quick fix.
tomr
Posts: 62
Joined: Wed Dec 09, 2020 9:36 am

Re: Issue with Text Formatting when Copying from RichEdit

Post by tomr »

Hi Sergey,
A fix in the next Update is totally fine.
Post Reply