Hi,
When I want to export the contents of my richtextbox to html I have the following problem:
When I insert a picture in the document and set the Html export settings to
ImageExportMode.UriSource and I watch in the string that is returned I don’t see a <img> tag.
When I set the properties so he has to go trough a eventhandler, I see that the
UriSource property is empty.
Code :
public string ExportToHtml(RadDocument document)
{
HtmlFormatProvider provider = new HtmlFormatProvider();
HtmlExportSettings settings = new HtmlExportSettings();
settings.ImageExporting += new EventHandler<ImageExportingEventArgs>(settings_ImageExporting);
settings.ImageExportMode = ImageExportMode.ImageExportingEvent;
provider.ExportSettings = settings;
return provider.Export(document);
}
void settings_ImageExporting(object sender, ImageExportingEventArgs e)
{
e.Src = e.Image.UriSource.AbsoluteUri;
}
Kind regards,
Bjorn