Problems pasting snapshots from Snagit or Adobe

3 posts, 0 answers
  1. Anders
    Anders avatar
    7 posts
    Member since:
    Jan 2013

    Posted 14 Mar 2014 Link to this post


    Snapshots from Snagit, Adobe and other softwares does not work.
    Picture does not show up.

    As well available as a Jing (.swf) file:


    Is there a fix for this problem?

  2. Yancho
    Yancho avatar
    72 posts

    Posted 18 Mar 2014 Link to this post

    Hi Anders,

    Thank you for getting to us with this!

    The unexpected behavior which you have experienced is a known issue. The issue is already added to our to-do list. We can assure you that we are doing our best to develop all enhancements to the control as soon as possible. You able to track its implementation progress using the Feedback & Ideas portal – pasting snapshots issues.

    The issue is specific to the program which you are copying the image from. Please take a look at this forum post for a reference.

    However, we have also found a workaround for the problem and it should display correctly snapshots. For using it, I would recommend you to subscribe to the CommandExecuting event of RadRichTextBox and handling it in the following way:
           this.editor.CommandExecuting += PasteImageCommand;
            private void PasteImageCommand(object sender, CommandExecutingEventArgs e)
                PasteCommand command = e.Command as PasteCommand;
                if (command != null && Clipboard.ContainsImage())
                    BitmapSource imageSource = Clipboard.GetImage();
                    using (MemoryStream stream = new MemoryStream())
                        JpegBitmapEncoder encoder = new JpegBitmapEncoder();
                        stream.Seek(0, SeekOrigin.Begin);
                        ((RadRichTextBox)sender).InsertImage(stream, "jpeg");
                        e.Cancel = true;

    I hope this helps. 

    All the best,

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

  3. DevCraft R3 2016 release webinar banner
  4. Anders
    Anders avatar
    7 posts
    Member since:
    Jan 2013

    Posted 25 Mar 2014 in reply to Yancho Link to this post

    Hi Yancho!

    Workaround works great!


Back to Top