G
Guest
I have an application that simply reads the text in a RichTextBox control, and stores the text into the database. I want to use the plain RichTextBox control and not a database rtf control.
When I read the Rtf property it returns the text combined with rft codes, e.g.:
"{\\rtf1 ....... \r\0"
I then store this text in my Access database via an OdbcCommand. When I read the text back from the database, the returned text is @-quoted as follows:
@"{\\rtf1 ....... \r\0"
When I try to set the RichTextControl Rtf property with the value from the database an exception is thrown.
It would appear that the Rtf property cannot accept @-quoted values (e.g. a value of
@"This is a test"
will cause an error.
How can I work around this problem while still using the RichTextControl in the scheme above.
When I read the Rtf property it returns the text combined with rft codes, e.g.:
"{\\rtf1 ....... \r\0"
I then store this text in my Access database via an OdbcCommand. When I read the text back from the database, the returned text is @-quoted as follows:
@"{\\rtf1 ....... \r\0"
When I try to set the RichTextControl Rtf property with the value from the database an exception is thrown.
It would appear that the Rtf property cannot accept @-quoted values (e.g. a value of
@"This is a test"
will cause an error.
How can I work around this problem while still using the RichTextControl in the scheme above.