Reputation: 2793
I have an open Exel workbook. One way to get Byte[] from it would be to 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#.
Upvotes: 0
Views: 1996
Reputation: 5370
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?
Upvotes: 1