回复 1楼chenbiao的帖子
Spread 和 Stream 的转换方式如下,
- private void saveToolStripMenuItem_Click(object sender, EventArgs e)
- {
- myStream = new MemoryStream();
- fpSpread1.Save(myStream, false);
- }
- private void loadToolStripMenuItem_Click(object sender, EventArgs e)
- {
- myStream.Position = 0; //需要把内存流指针修改为0
- fpSpread1.Open(myStream);
- }
复制代码 |