Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have another problem. IF I want to save RichText TextBox content into database and later retrieve it so that the fonts and colors of texts in it are preserved. How can I do it? I have tried to save .Text property which only perserves the text body but not the fonts and colors. Which property of the RichText should I be using??

 

- Thanks.

Posted

Can't save

 

I am trying to save .Rtf property to database which uses a text type field to store RichText content, but it failed to save. Code as follows:

====================================

string cmdstr = "insert into diary2 values('"+date+"', '"+DiaryTextBox.Rtf+"')";

OleDbCommand cmd = new OleDbCommand(cmdstr, conn1);

cmd.ExecuteNonQuery();

 

What is the problem?

 

- Thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...