回复 15楼315834729的帖子
在你的使用场景中需要对每个单元格设置CellType来实现该功能:
[code] private void Form1_Load(object sender, EventArgs e)
{
fpSpread1.PerformLayout();
fpSpread1.OpenExcel("22.xls");
fpSpread1.AllowCellOverflow = false;
CTextCellType ctc = new CTextCellType();
fpSpread1.ActiveSheet.Cells[0, 0,10,9].CellType = ctc;
fpSpread1.ActiveSheet.Cells[0, 0].Value = "6565656565665";
fpSpread1.ResumeLayout();
}[code] |