Hi,
The requirement is converting HTML string into RadDocument xaml string, so I take the docs from
https://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/formats-and-conversion/html/htmlformatprovider#export
and wrote the code as follow:
HtmlFormatProvider provider = new HtmlFormatProvider();
XamlFormatProvider provider2 = new XamlFormatProvider();
RadDocument document = provider.Import(html);
string xaml = provider2.Export(document);
return xaml;
the error pops in line 3:
"The type initializer for 'Telerik.Windows.Documents.UI.TextDecorations.DecorationProviders.UnderlineTypes' threw an exception."
How to solve this?
Thanks,
Rain