Convert RTF to HTML, IMAGE ?

  • I'm looking for away to convert a RTF string to something that can be displayed in SSRS.

    It could be HTML or a Image file of some type(even varbinary would probably work). I'm not very picky. I only need to render one RTF at a time. This is stored in a table as a string.

    Any ideas or help would greatly be appreciated. If I can keep the conversion in T-SQl that would be best, but outside code ideas welcome as well.

    here is a rtf example.

    {\rtf1\ansi\ftnbj{\fonttbl{\f0 \fswiss Arial;}}{\colortbl ;\red255\green255\blue255 ;\red0\green0\blue255 ;

    \red0\green128\blue0 ;}{\stylesheet{\f0\fs20\cf0\cb1 Normal;}{\cs1\additive\cf0\cb1 Default Paragraph Font;}}

    \margl1440\margr1440\margt540\margb1440\headery540\footery720\formshade\sectd\marglsxn1440\margrsxn1440\margtsxn540

    \margbsxn1440\headery540\footery720\sbkpage\pgncont\plain\plain\fs20\pard\plain\fs20\cf0\sscharaux11\par\fs24\b

    Vital Signs - Pediatric \fs20\b0\par\fs24\b VITAL SIGNS\par\fs20 Entered weight: \b0 55 lb. \par\b Calculated Weight:

    \b0 65 lb. \par\b Height: \b0 62 in. \par\b Head circumference: \b0 18 in. \par\b Temperature: \b0 98.6 deg F. \par\b Pulse rate: \b0 74\par\b

    Pulse rhythm: \b0 regular\par\b Respirations: \b0 14\par\b Blood Pressure: \b0 110/70 mmHg\par\par\plain\fs20\par\par \par\par\b

    Signed by coolness on 10/30/2016 at 7:04 PM \b0\par\par }

    ***SQL born on date Spring 2013:-)

Viewing 0 posts

You must be logged in to reply to this topic. Login to reply