Dear Admin,
we have a serious issue and needs urgent response we are paid user of telerik.we programmatically load image in RadRicTextbox then we print image this through Radrichtextbox control the solution works fine with IE11 but for IE8.0 some image are shown half. when we saw the generated HTML it seems that the images that are shown broken on browser pop up are not using Base64EncodedSplit as the HTML Have only one <img> tag. These images are also attached for reference.
RadDocument docu =
new
RadDocument();
docu.LayoutMode = DocumentLayoutMode.Flow;
Telerik.Windows.Documents.Model.Section section =
new
Telerik.Windows.Documents.Model.Section();
Telerik.Windows.Documents.Model.Paragraph p1 =
new
Telerik.Windows.Documents.Model.Paragraph();
ImageInline img1 =
new
ImageInline(stream1);
p1.TextAlignment = RadTextAlignment.Center;
p1.Inlines.Add(img1);
section.Blocks.Add(p1);
docu.Sections.Add(section);
this
.richTextbox.Document = docu;
this
.richTextbox.UpdateLayout();
private
void
btnPrint_Click(
object
sender, RoutedEventArgs e)
{
try
{
var obj = RadCompositionInitializer.Catalog;
HtmlExportSettings exp =
new
HtmlExportSettings();
exp.ImageExportMode = Telerik.Windows.Documents.FormatProviders.Html.ImageExportMode.Base64EncodedSplit;
exp.DocumentExportLevel = DocumentExportLevel.Fragment;
exp.StyleRepositoryExportMode = StyleRepositoryExportMode.DontExportStyles;
exp.StylesExportMode = StylesExportMode.Inline;
exp.ExportFontStylesAsTags =
true
;
RadCompositionInitializer.Catalog =
new
TypeCatalog(
typeof
(Telerik.Windows.Documents.FormatProviders.Html.HtmlFormatProvider));
PrintSettings settings =
new
PrintSettings()
{
HtmlPrintExportSettings = exp,
DocumentName =
"My document"
,
PrintMode = Telerik.Windows.Documents.UI.PrintMode.HtmlPreview,
UseDefaultPrinter =
true
,
PrintScaling = Telerik.Windows.Documents.UI.PrintScaling.None
};
this
.richTextbox.Print(settings);
RadCompositionInitializer.Catalog = obj;
}
catch
(Exception ex)
{
MessageBox.Show(ex.Message);
}
}