C# 导出wpf中的RadRichTextBox内容
我想将TelerikC# 导出wpf中的RadRichTextBox内容,c#,wpf,telerik,richtextbox,C#,Wpf,Telerik,Richtextbox,我想将TelerikRadRichTextBox导出到变量 (new RtfFormatProvider()).Export(RadRichTextBox1.Document) 但此代码将显示此错误: 无法从RadDocument转换为RadFlowDocument 您可能没有引用相应的RtfFormatProvider类 使用s检查您的,或明确呼叫: (new Telerik.Windows.Documents.FormatProviders.Rtf.RtfFormatProvider())
RadRichTextBox
导出到变量
(new RtfFormatProvider()).Export(RadRichTextBox1.Document)
但此代码将显示此错误:
无法从RadDocument转换为RadFlowDocument
您可能没有引用相应的
RtfFormatProvider
类
使用s检查您的,或明确呼叫:
(new Telerik.Windows.Documents.FormatProviders.Rtf.RtfFormatProvider()).Export(RadRichTextBox1.Document)