Hi all
I don't know if want I want to do is possible:-
My application loads an RTF file into a rich text box, the RTF would have been made by MS WORD, and there could easily be some line spacing in the formatting.
So when the rtf is displayed in my richtextbox it looks like there are blank lines between the lines of text, if fact there are no blank lines, it is the line spacing that was used when the rtf was created in MS WORD.
to combat this I use:-
rtb1.SaveFile rtb1.FileName, rtfText
this is fine, it removes the formatting and now each line of text is immediately below the previous line ( without what looks like blank lines ).
The problem is the text is also change to black and I loose the various colours of the original text.
Is there way of stripping the spacing portion of the formatting but keeping the font colours ?
Any help would be great
Thanks in advance
david
I don't know if want I want to do is possible:-
My application loads an RTF file into a rich text box, the RTF would have been made by MS WORD, and there could easily be some line spacing in the formatting.
So when the rtf is displayed in my richtextbox it looks like there are blank lines between the lines of text, if fact there are no blank lines, it is the line spacing that was used when the rtf was created in MS WORD.
to combat this I use:-
rtb1.SaveFile rtb1.FileName, rtfText
this is fine, it removes the formatting and now each line of text is immediately below the previous line ( without what looks like blank lines ).
The problem is the text is also change to black and I loose the various colours of the original text.
Is there way of stripping the spacing portion of the formatting but keeping the font colours ?
Any help would be great
Thanks in advance
david