RTF to clipboard
Posted: Wed Dec 29, 2010 12:38 pm
Hi, there.
I'm trying to copy a formatted RTF-text to the clipboard, so it can be pasted into a word processor "as is", with all formatting options. If I copy the formatted text using the standard method (oClipBoard:SetBuffer(cRtfText)), I receive a plain text with all formatting options ({\rtf ...). There must be a way to set the clipboard format to RTF, but I failed using RegisterFormat(). I even scanned all registered formats (using oClipBoard:GetFormatName()) and tried everything containing "RTF" or "Rich Text", but in this situation, just nothing was copied. This must be possible, but there's no constant inside XBP.CH for it. Any ideas?
I'm trying to copy a formatted RTF-text to the clipboard, so it can be pasted into a word processor "as is", with all formatting options. If I copy the formatted text using the standard method (oClipBoard:SetBuffer(cRtfText)), I receive a plain text with all formatting options ({\rtf ...). There must be a way to set the clipboard format to RTF, but I failed using RegisterFormat(). I even scanned all registered formats (using oClipBoard:GetFormatName()) and tried everything containing "RTF" or "Rich Text", but in this situation, just nothing was copied. This must be possible, but there's no constant inside XBP.CH for it. Any ideas?