您好!
不知道您用的是Spread的哪个版本?我在SpreadWin7中尝试了相同的用例,没有您说的问题。我的事例代码:
public Form1()
{
InitializeComponent();
fpSpread1_Sheet1.Cells[1, 1].Formula = "SUM(A1,A2)";
fpSpread1.AllowUserFormulas = true;
}
private void button1_Click(object sender, EventArgs e)
{
fpSpread1.Save(@"E:\test.xml",false);
}
private void button2_Click(object sender, EventArgs e)
{
fpSpread1.Open(@"E:\test.xml");
} |