Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I have save text from RichTextBox to Mysql table in C# and it save it with all the formats, but when i try to load it back from Mysql to RichtextBox1 it only appaears the code it does not put it back the way it was before i saved it.

i want to no how to change the crazy caracters to the original text with the current format, because i want to then later put it in crystal report and print it with the correct formating as original.

thank you
Posted

1 solution

 
Share this answer
 
Comments
azteca_04 24-Jan-13 0:10am    
thanks for the response, but is there a funtion or class that does this? since i would be pulling the rtf from mysql and trying to displayed it in richtextbox and crystalreport
adriancs 24-Jan-13 0:13am    
richTextBox1.Rtf = // data from mysql
azteca_04 24-Jan-13 18:32pm    
i get this error: File format is not valid.
adriancs 25-Jan-13 23:18pm    
insert into `table_name`(`richtext`) values('" + richTextBox1.Rtf + "');
richTextBox1.Rtf = select `richtext` from `table_name`;

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900