Windows Develop Bookmark and Share   
 index > Windows Forms General > how can i save the text format to the database?
 

how can i save the text format to the database?

i'm using richtextbox,
icemart525  Tuesday, March 28, 2006 7:05 AM

Itcan be stored as text datatype. I am not sure about RTF if it is unicode, then you need to store it as ntext.

Andreas Johansson  Wednesday, April 05, 2006 9:47 AM
If you want to save the text including the formatting you can retrieve it from the RichTextBox.Rtf property.
Andreas Johansson  Monday, April 03, 2006 6:39 PM
what should be the datatype for a rtf?
icemart525  Wednesday, April 05, 2006 1:02 AM

Itcan be stored as text datatype. I am not sure about RTF if it is unicode, then you need to store it as ntext.

Andreas Johansson  Wednesday, April 05, 2006 9:47 AM
Andreas Johansson wrote:

Itcan be stored as text datatype. I am not sure about RTF if it is unicode, then you need to store it as ntext.

i'm using a text datatype and it's working fine. how will i know if it's a unicode?

icemart525  Friday, April 07, 2006 9:49 AM

Unicode is a format to store characters that can not be represented by one byte and therefor has 2 bytes for each character.

http://www.unicode.org/

I have not really looked into RTF or how it works but I did a small test. I created a new document in wordpad and added some characters using the character map tool. I studied the saved RTF document and it is all stored asregular ASCIItext. Itencodes characters outside the regular set.

Andreas Johansson  Friday, April 07, 2006 11:01 AM

You can use google to search for other answers

Custom Search

More Threads

• Getting controls under mouse pointer
• Setting focus to a different control from AfterSelect event of TreeView
• Removing a TabPage Containing a DataGridView When Current Cell is Invalid
• Programmatically adding controls to Panels
• retaining focus
• MessageBox usage causes error: namespace does not exisit in the namespace System
• crystalreports
• cannot display the usercontrol.
• need help
• ContextMenu events