Hi
I'm currently evaluating the RichtextControl of Telerik.
When I try to import HTML with a image tag, which has an image that does not exist, I got a pixelFormat error.
How can I handle missing images in HTML ?
Here is the load code
I tried it with the using the
But this didn't helped
I'm currently evaluating the RichtextControl of Telerik.
When I try to import HTML with a image tag, which has an image that does not exist, I got a pixelFormat error.
How can I handle missing images in HTML ?
Here is the load code
public void Load(string htmlInput) {HtmlFormatProvider provider = new HtmlFormatProvider(); RadDocument telDoc = provider.Import(input); telerikTextBox.Document = telDoc; //spellchecker language anpassen telerikTextBox.IsSpellCheckingEnabled = false; this.telerikTextBox.SpellChecker.SpellCheckingCulture = new CultureInfo("en-US");}
I tried it with the using the
LoadImageFromUrlevent from HtmlImportSettings
But this didn't helped
Bitmap image = new Bitmap(16, 16); void settings_LoadImageFromUrl(object sender, LoadImageEventArgs e) { if (e != null) { MemoryStream memStream = new MemoryStream(); image.Save(memStream, ImageFormat.Bmp); e.ImageElement.Init(memStream, ".bmp"); } }