I am trying to show rtf Data in SQL SERVER Reporting Services (SSRS). I have Visual Studio 2010 and ReportViewer Version 10.0.0
The rtf data is stored in the dataset which I am binding to the SSRS report.
I have added following reference to Report References System.Windows.Forms In Textbox Expression in SSRS-Report,
=Code.ConvertRtfToText(Fields!colInfo.Value)
Following code I have put in Report Code properties
Public Shared Function ConvertRtfToText(ByVal input As String) As String
Dim returnValue As String = String.Empty
Dim converter As New System.Windows.Forms.RichTextBox()
converter.Rtf = input.Trim
returnValue = converter.Text
Return returnValue
End Function
The Output I get is
{\rtf1\ansi\ansicpg1252\uc1 aaa}