Copy/Paste without Linefeed

General TRichView support forum. Please post your questions here
Post Reply
Kern
Posts: 25
Joined: Mon Aug 07, 2006 3:49 pm

Copy/Paste without Linefeed

Post by Kern »

If we copy to clipboard from a TRichView and paste this text to Word (as example), we get the text + CR/LF pasted in Word. This is standard, it's the same behaviour in TRichEdit.

But in TRichEdit we can select only SelStart := 0, SelLength := Textlength - 2, then copy to clipboard. Then we don't have the Linefeed in Word.
Sergey Tkachenko
Site Admin
Posts: 17534
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

What's your version of TRichView?
Kern
Posts: 25
Joined: Mon Aug 07, 2006 3:49 pm

Post by Kern »

We use TRichview 1.9.24
Kern
Posts: 25
Joined: Mon Aug 07, 2006 3:49 pm

Post by Kern »

Sergey Tkachenko wrote:What's your version of TRichView?
Did you find anything about this behavior?
Sergey Tkachenko
Site Admin
Posts: 17534
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

In TRichView, there are no end-of-line characters. There is only a flag "this item starts a new line/paragraph". This causes some problems when copying to MS Word/RichEdit, because in TRichView it's not possible to select EOL character at the end of document (because it does not exists).
In the latest version (newer than 1.9.24), the last EOL character is never copied when saving selection to RTF. But I think I'll revert it to the old behavior.
Post Reply