Thank you for getting to us about this issue.
Similar issues have been reported when pasting images from MS Paint. When we investigated the problem, it turned out to be a common problem with corrupted data being saved in the clipboard from some programs. There is more information about this issue here.
Unfortunately, the workaround which can be implemented based on the description and code in the blog, is to save all images to a memory stream first. As this may hinder the overall performance, we are refraining from implementing the workaround in the editor. The good news is that you can workaround it on your end quite easily. All you need to do is to handle the CommandExecuting event of RadRichTextBox like this:
sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
PasteCommand command = e.Command
BitmapSource imageSource = Clipboard.GetImage();
(MemoryStream stream =
JpegBitmapEncoder encoder =
You can also track this PITS issue item
in order to be notified when the workaround is implemented in the editor, making this code redundant.
I hope this helps.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>