:
this.rtxtReport.Rtf = "{\\rtf1\\ansi\\deff0{\\fonttbl{\\f0 Tahoma;}}";
this.rtxtReport.Rtf += "{\\colortbl;\\red0\\green0\\blue0;\\red255\\green0\\blue0;}";
this.rtxtReport.Rtf += "{\\header\\pard\\qr\\plain\\f0\\chpgn\\par}";
this.rtxtReport.Rtf += "{\\pard{\\b ";
this.rtxtReport.Text += this.Ln + "> " + "VSTFS Report - " + System.DateTime.Now;
this.rtxtReport.Rtf += " \\b}\\par}";
The only way I managed to highlight bold text is to select it, which is not practical, I create a document from scratch, you will need to select the text that you add, it made bold this text, but everything else added later ! ... the choice (beginning, length) has a length on it, so there is a bust.
Does anyone really get C # for bold text using rtf formatting and not highlighting the text?
source
share