回复 10楼iceman的帖子
请使用以下代码进行测试:
- MemoryStream stream = new MemoryStream();
- public Form1()
- {
- InitializeComponent();
- fpSpread1.Sheets[0].Cells[0, 0].Text = "abc";
- fpSpread1.Save(stream, false);
- }
- private void 加载ToolStripMenuItem_Click(object sender, EventArgs e)
- {
- stream.Seek(0, SeekOrigin.Begin);
- fpSpread1.Open(stream);
- }
复制代码 |