开发者

Save an Open Excel WorkBook to Byte[]

I have an open Exel workbook. One way to get Byte[] from it would be to 开发者_StackOverflow社区save File using App.ActiveWorkbook.SaveAs (@temppath,..) and then read file to Byte[] from that path. But is there a way to read open workbook to Byte[]. I am using C#.


This basically resolves to the question of how to get the workbook into a stream without saving it to disk first. See: How to write an Excel workbook to a MemoryStream in .NET?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜