前端网页会自动忽略空格,有这样需求可以参考:
- FpSpread1.Sheets[0].RowCount = 4;
- FpSpread1.Sheets[0].Cells[1, 1].EncodeValue = false;
- FpSpread1.Sheets[0].Cells[1, 1].Value = "Hello<B>World</B>";
- FpSpread1.Sheets[0].Rows[2].EncodeValue = false;
- FpSpread1.Sheets[0].Cells[2, 1].Value = "<a href='http://gcpowertools.com'>gcpowertools.com</a>";
- FpSpread1.Sheets[0].Columns[2].EncodeValue = false;
- FpSpread1.Sheets[0].Cells[3, 2].Value = "Break here<BR>to anew line";
复制代码 |