解决啦,谢谢分享
- FarPoint.Web.Spread.FpSpread webfp = new FarPoint.Web.Spread.FpSpread();
- using (MemoryStream stream = new MemoryStream())
- {
- if (webfp.SaveExcel(stream))
- {
- byte[] data = stream.GetBuffer();
- using (MemoryStream fpstream = new MemoryStream(data))
- {
- this.fpSpread1.OpenExcel(fpstream);
- }
- }
- }
复制代码
WEB和WINFORM可以共享spread啦
|