回复 7楼roger.wang的帖子
我知道是这么写了,写在这个地方 if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
try
{
fpSpread1.ActiveSheet.Protect = false;
//fpSpread1.ActiveSheet.DataAutoCellTypes = true;
fpSpread1.ActiveSheet.DefaultStyle.CellType = new FarPoint.Win.Spread.CellType.NumberCellType();
fpSpread1.SaveExcel(saveFileDialog1.FileName, FarPoint.Win.Spread.Model.IncludeHeaders.None);
MessageBox.Show("已保存!");
}
catch (Exception ex)
{
Console.Write(ex);
}
}
}不起作用啊,还是原来那样,应该是数值类型的都保存成文本类型了 |