1. When content with images is export to html, some of the images does not show up in ie7.
2. is there any option to export images as relative paths in html.
1 Answer, 1 is accepted
answered on 11 Apr 2012, 11:29 AM
Unfortunately your first issue is a known problem and there is no workaround you could use with IE 8 and IE 7. However, the problem does not appear if you use IE 9, Firefox or Chrome.
Regarding your second question, you can check what Iva answered in this forum thread. Using the sample command code for the insert picture button you will be sure that images will have uri source.
Then you should set these settings to the html format provider:
HtmlFormatProvider provider = DocumentFormatProvidersManager.GetProviderByExtension("html") as HtmlFormatProvider;
HtmlExportSettings htmlExportSettings = new HtmlExportSettings();
This is how you can export images as relative paths.
If you modify an image using the ImageEditorDialog, its UriSource will be set to null. This case is handled in the attached project by saving the images on in the Bin folder and setting the Src of the image to the filepath where the image is saved.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>