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.
Copy/Paste without Linefeed
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.