Hello,
I'm using the HTML export functionality for displaying the result in Microsoft SSRS reports as html.
I think I've considered all recommendations concerning the export:
The SSRS html renderer displays the data correctly, but not when exported as PDF. There somehow the font type get lost.
I've found a post about this MS problem here: textbox-content-rendered-as-html-does-not-respect-fontfamilywingdings-2
--> So what I'm trying to achieve is instead of...
with style attribute I want to get an output like this:
Is there a way to do this?
Best regards & thx,
Bernhard
-------------------------
UPDATE:
It does work with SSRS 2012 - you just have to remove the single qutoation mark, so instead of the example above just:
@Telerik:
I'm still curious if we can export html data as described above ;-)
I'm using the HTML export functionality for displaying the result in Microsoft SSRS reports as html.
I think I've considered all recommendations concerning the export:
var exportSettings =
new
HtmlExportSettings();
exportSettings.DocumentExportLevel = DocumentExportLevel.Fragment;
exportSettings.StylesExportMode = StylesExportMode.Inline;
exportSettings.StyleRepositoryExportMode = StyleRepositoryExportMode.DontExportStyles;
exportSettings.ExportFontStylesAsTags =
true
;
exportSettings.ImageExportMode = ImageExportMode.None;
exportSettings.ExportStyleMetadata =
false
;
var formatProvider =
new
HtmlFormatProvider();
formatProvider.ExportSettings = exportSettings;
string
result = formatProvider.Export(
this
.radRichTextBox.Document);
The SSRS html renderer displays the data correctly, but not when exported as PDF. There somehow the font type get lost.
I've found a post about this MS problem here: textbox-content-rendered-as-html-does-not-respect-fontfamilywingdings-2
--> So what I'm trying to achieve is instead of...
<
span
style
=
"font-family:'wingdings 2';font-size:24px;"
>abc</
span
>
<
font
face
=
'wingdings 2'
size
=
'24'
>abc</
font
>
Is there a way to do this?
Best regards & thx,
Bernhard
-------------------------
UPDATE:
It does work with SSRS 2012 - you just have to remove the single qutoation mark, so instead of the example above just:
<
span
style
=
"font-family:wingdings 2;font-size:24px;"
>abc</
span
>
@Telerik:
I'm still curious if we can export html data as described above ;-)