Home All Groups Group Topic Archive Search About

Saving Rich Text to a SQL Database

Author
24 Feb 2006 10:43 AM
Richard Harris
Hi

I am trying to save data from a Windows Forms RichTextBox control to a SQL
2000 Server database using ado.net and then retreive it again.

I have searched all over the internet on the best way to do this and can't
find anything.  Has anyone got any good code examples on how this can be
done?

Thanks
Richard

Author
24 Feb 2006 11:41 AM
Samuel Shulman
You can use the rtf property of the control and save it as text
Let me know if you need more help.

hth,
Samuel Shulman

Show quoteHide quote
"Richard Harris" <rich***@richardjharris.plus.com> wrote in message
news:eX4nW8SOGHA.2628@TK2MSFTNGP15.phx.gbl...
> Hi
>
> I am trying to save data from a Windows Forms RichTextBox control to a SQL
> 2000 Server database using ado.net and then retreive it again.
>
> I have searched all over the internet on the best way to do this and can't
> find anything.  Has anyone got any good code examples on how this can be
> done?
>
> Thanks
> Richard
>
>
Author
15 Mar 2006 7:25 PM
Mario Loza Armand Ugon
I had the same problem, if your rtf has images and stuff then u must use a file , you will find informacion in codeguru, but if its only text you must send the rtf text on a parameter to a command, its works, i am the living proof.

------
Hit any user to continue.

---
Posted via www.DotNetSlackers.com