font

  • Thread starter Thread starter Hrvoje Voda
  • Start date Start date
H

Hrvoje Voda

i'm using richtextbox and i change font to bold or italic.
Then i save that text into database.
How to save the font with text?
When i load the text from database it's font is regular.

Hrcko
 
i'm using richtextbox and i change font to bold or italic.
Then i save that text into database.
How to save the font with text?
When i load the text from database it's font is regular.

Hrcko

You need to save the Rtf rather than the text, that will keep all the
formatting.
 
Hrvoje,

Try to save the text in RTF format. Use the Rtf proeprty instead of Text
property.
 
There is just one problem.
When i load data back from database instead of the normal text i get a text
in rtf format.
I'm loading it into grid.
How to transform it into normal text?
 
I don't understand. If you leaded in a grid why you want to preserve the
font settings?

There is one solution that I don't like presonally - create one hidden
richtextbox, load the rtf and get the text from its Text property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top