Hi,
I have noticed what appears to be a bug.
How to repeat:
1. Copy any email address from the body of an Outlook Email (Outlook 2013).
2. Paste the email address into the radrichtextbox.
3. Save the content via code below;
Dim fp As New RtfFormatProvider
Dim Result As String = fp.Export(rtb.Document) <<< exception occurs
Exception Details:
"The given key was not present in the dictionary."
Stack Trace:
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportSpanProperties(SpanProperties spanProps, ExportContext context, RtfWriter writer)
at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportSpanProperties(Span span)
at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportSpan(Span span)
at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportInline(Inline inline)
at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportFieldFragment(DocumentFragment fragment)
at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportCodeBasedFieldRangeStart(FieldRangeStart fieldStart)
at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportFieldRangeStart(FieldRangeStart rangeStart)
at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportInline(Inline inline)
at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportParagraph(Paragraph paragraph)
at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportBlock(Block block)
at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportSection(Section section)
at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportDocument()
at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.Export()
at Telerik.Windows.Documents.FormatProviders.Rtf.RtfFormatProvider.Export(RadDocument document, Stream output)
at Telerik.Windows.Documents.FormatProviders.Rtf.RtfFormatProvider.Export(RadDocument document)
If any more information is required please let me know and I will provide what I can.
Kind Regards,
Shaun