Hi,
I would like to Export my Document to string. In my older Version 2019.1.116 the following code works fine:
In this case I can use Telerik.Windows.Documents.FormatProviders.Html.HTMLFormatProvider
HtmlFormatProvider provider = new HtmlFormatProvider() { ExportSettings = new HtmlExportSettings() };
string comment = provider.Export(radRichTextBox.Document);
After Update 2019.3.1023 it doesn't work anymore and I have to use Telerik.Windows.Documents.Flow.FormatProviders.Html.HtmlFormatProvider
Same with the exportsettings:
provider.ExportSettings.ExportFontStylesAsTags = true;
provider.ExportSettings.ExportHeadingsAsTags = true;
provider.ExportSettings.StyleRepositoryExportMode = StyleRepositoryExportMode.DontExportStyles;
provider.ExportSettings.ExportLocalOrStyleValueSource = true;
provider.ExportSettings.PropertiesToIgnore["span"].Add("font-family");
provider.ExportSettings.PropertiesToIgnore["p"].Add("margin-top");
provider.ExportSettings.PropertiesToIgnore["p"].Add("margin-bottom");
only the following settings work:
provider.ExportSettings.StylesExportMode = StylesExportMode.Inline;
provider.ExportSettings.DocumentExportLevel = DocumentExportLevel.Fragment;
What do I have to do to use the old methods again or achieve the same behaviour?
Regards,
Frank