Legal Description/RTF Format

Discussions concerning general integration topics.

Moderator: Phil Barton

Post Reply
dlerickson
Posts: 82
Joined: Tue Jan 21, 2014 11:35 am
Location: Austin, TX

Legal Description/RTF Format

Post by dlerickson »

I'm looking to add Legal Description data to one of the feeds we've built for integrating with our LOS, using the CommitmentLegal#Description field in pfm.Property. We need the data only and not the RTF formatting. Is there a "clean" source of this data elsewhere or are we going to have to parse out the RTF formatting bits from this field?
BobRichards
Posts: 1377
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Legal Description/RTF Format

Post by BobRichards »

We do not have a built-in way of retrieving the undecorated text from an RTF box.
Bob Richards, Senior Software Developer, SoftPro
tim.pageler
Posts: 10
Joined: Fri Jan 10, 2014 4:18 pm

Re: Legal Description/RTF Format

Post by tim.pageler »

Understanding you don't have anything built in, do you have any suggestions on how we would go about extracting just the text from one of these fields?
Phil Barton
Posts: 54
Joined: Wed Sep 24, 2008 2:37 pm
Location: Raleigh, NC
Contact:

Re: Legal Description/RTF Format

Post by Phil Barton »

You could use WinForms rich text box to set the RTF text and extract the raw text like so, in C# (the 'rtf' variable is your raw rich text):

Code: Select all

   
   using(RichTextBox rtb = new RichTextBox())
   {
       rtb.Rtf = rtf;
       return rtb.Text;
   }
Phil Barton
Software Architect
SoftPro
Post Reply