回复 1楼home_yibin的帖子
通过后台、或者脚本调用richTextBox1.Html赋值试试:
- void MainReport_ReportStart(object sender, EventArgs e)
- {
- richTextBox1.Html = @"<table cellspacing=""2"" cellpadding=""0"" border=""1"" border-color=""#eeeeee""><tbody><tr><td><font size=""2"" style=""font-family:arial,helvetica,sans-serif""><strong>Student ID&nbsp;&nbsp;</strong><br />10001<br/>10002<br/></font></td><td nowrap=""nowrap""><font size=""2"" style=""font-family:arial,helvetica,sans-serif""><strong>Student Name&nbsp;&nbsp;</strong><br />Ortega, Jose<br/>Ortega, Mary<br/></font></td><td nowrap=""nowrap""><font size=""2"" style=""font-family:arial,helvetica,sans-serif""><strong>Birth date&nbsp;&nbsp;</strong><br />01/01/2001<br/>01/02/2005<br/></font></td></tr></tbody></table>";
- }
复制代码 |