Page 1 of 1
Copy/Paste without Linefeed
Posted: Thu Feb 08, 2007 9:41 am
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.
Posted: Thu Feb 08, 2007 11:03 am
by Sergey Tkachenko
What's your version of TRichView?
Posted: Thu Feb 08, 2007 1:23 pm
by Kern
We use TRichview 1.9.24
Posted: Fri Aug 17, 2007 1:24 pm
by Kern
Sergey Tkachenko wrote:What's your version of TRichView?
Did you find anything about this behavior?
Posted: Fri Aug 17, 2007 2:09 pm
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.