Answered Print of Rich Text Format Data

  • Thursday, October 01, 2009 1:31 PM
     
     
    I have a dataset that contains RTF data such as the following:

    {\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fswiss\...

    Is there anyway in SSRS 2005 or SSRS 2008 for this to print out in Rich Text Format

All Replies

  • Monday, October 05, 2009 9:21 AM
    Moderator
     
     
    Hi miguelh,

    If I understand correctly, you want display Rich Text Format(RTF) data on the report.

    In SQL Server Reporting Services, we can use the custom code function to parse RTF strings into a report.

    Please check the following thread for more information:
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/d7091a6e-3411-47ae-8583-b0468fde58d2

    Please feel free to ask, if you have any more questions.

    Thanks,
    Jin Chen
    Jin Chen - MSFT
  • Tuesday, October 06, 2009 2:07 PM
     
     
    Thanks for the info

    However, for the purpose of this report, I need to show the RTF data in RTF format.

    The code works but shows it in normal text.
  • Thursday, October 08, 2009 1:16 AM
    Moderator
     
     Answered
    Hi miguelh,

    Based on my testing, the RTF format can be only shown in normal text within SQL Server Reporting Services.

    A complex workaround to solve the issue is that:
    Render the RTF file into IMG file, and then display the image on the report.

    Thanks,
    Jin Chen
    Jin Chen - MSFT
    • Marked As Answer by miguelh Thursday, October 08, 2009 7:00 PM
    •  
  • Thursday, October 08, 2009 1:27 AM
    Moderator
     
     Answered

    OK. I found a good blog that describe on this subject:
    http://binaryworld.net/Main/CodeDetail.aspx?CodeId=4049

    This article is offered by Nayan Patel 
    This article give us the idea to convert RTF to image and then display on the report.
    Jin Chen - MSFT
    • Marked As Answer by miguelh Thursday, October 08, 2009 7:00 PM
    •