Click here to Skip to main content
12,996,261 members (68,841 online)
Rate this:
 
Please Sign up or sign in to 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 23-Jan-13 12:59pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170609.2 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100