RTF Text box revisited

Sorry for this post but Iam still stuck on this and I really don't want to have to convert to plain text on the Delphi side if I don't have to.

Please see this post for what was on the last message

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=974716&SiteID=1

The problem is that I trie what Omegaman suggested and the RTF text box still can't read teh RTF data from the Paradox table and the ODBC driver. When the rtf reads the data it looks like this at runtime with out doing anything.

{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}{\f1\fnil MS Sans Serif;}}

\viewkind4\uc1\pard\lang1033\ul\b\f0\fs22 This should be my RTF formated Text\ulnone\b0\par

\f1\par

}

After running this code

DataRowView currentHorse = horse2BindingSource.Current as DataRowView;

DataSet1.horse2Row hrow = currentHorse.Row as DataSet1.horse2Row;

string rtf = hrow.FRONT;

string h = hrow.HORSENAME;

rtf = Regex.Replace(rtf, @"\\\\", @"\", RegexOptions.Multiline);

hrow.FRONT = rtf;

string rtfbox = richTextBox1.Text;

horse2BindingSource.EndEdit();

horse2TableAdapter.Update(dataSet1.horse2);

dataSet1.horse2.AcceptChanges();

Is there anything else I can do to get this to read correctly




Answer this question

RTF Text box revisited

  • langalaxy

    Looks like the Text property of the RTB is bound instead of the Rtf property.


  • RTF Text box revisited