Hi, I have a problem with a document, here is what it's going on:
I copy some text from MS Word (THIS TEXT HAS SOME BULLETS) and paste it to the richtexteditor, then I save the content of the document into the database, in a byte array field (this I do it with RTFFORMATPROVIDER).
RtfFormatProvider rtf =
new
RtfFormatProvider();<br>
string
rtfS = rtf.Export(rtfEditor.Document);<br>
byte
[] bytes = System.Text.Encoding.Default.GetBytes(rtfS);
Next when I want to show in another screen the document I saved, I show it with RTFFORMATPROVIDER, here what it happens is that I lost the format of the bullets, the bullets are still there but they have a different size and family.
<p>
byte
[] _doc;</p><p>String eTexto = System.Text.Encoding.Default.GetString(_doc);</p><p>RtfFormatProvider rtf =
new
RtfFormatProvider();<br> rtfEditor.Document = rtf.Import(eTexto);</p>
I know that this is probably because of the way I save the document since the one in MS Word is in .DOC format, and I am saving it in .RTF format.
What I need, is that to find all bullets after the richTextEditor.Import, so I can set the family and size that I want(which is always the same one, TimesNewRoman Size10).
Is there a way to achieve this?
Thanks in advanced.