Completed
Last Updated: 13 Oct 2015 12:57 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 16 Jul 2015 09:59
Category: RichTextEditor
Type: Bug Report
1
FIX. RadRichTextEditor - ArgumentException when exporting a document with XamlFormatProvider containing a pasted image from the browser
Copy the following image from the browser and paste it to RadRichTextEditor: https://en.wikipedia.org/wiki/File:Telerik_Logo.png. IOException is thrown when pasting the image. However, it is loaded at the end.

Export the image with the following code:

private void radButton1_Click(object sender, EventArgs e)
{
    DocumentFormatProviderBase provider = new XamlFormatProvider();
    byte[] byteData = provider.Export(this.radRichTextEditor1.Document);
}

ArgumentException occurs. 

Workaround: save the image first and copy it from Paint for example. 
1 comment
ADMIN
Ralitsa
Posted on: 17 Sep 2015 15:22
The exception is observed with .Net 4.5 and higher versions