public void Textbox(Textbox tb, string t, Row row) { if (tb.IsHtml(this.r, row)) { // just do escape chars > 128? t = RtfAnsi(t); } else { // make all the characters readable t = EscapeText(t); } // determine if we're in a tablecell bool bCell = InTable(tb); if (t != "") { tw.Write("{"); DoStyle(tb.Style, row); tw.Write(t); tw.Write("}"); } if (bCell) { tw.Write(@"\cell"); } }