Let’s say i have 3 byte arrays, each representin a .xls file. How can i combine them into a single xls file with 3 sheets. The SSRS reports are very rich and include charts sp oledb is not an option.
Performance is not important so i could save them to disk if needed, as a last resort i could even use an excel macro (if i knew how to do that). I tried to use microsodt.office.interop.excel but i could only manage to add a new sheet to a file, i couldn’t add an existing sheet.
Any help would be appreciated.
It seems to me that you just need a way to programatically write Byte arrays to a WorkBook.
Here is a method that will write a byte[] as a sheet to a specific WorkBook:
The DESTROY method releases the COM stuff, which is pretty important:
If I understand correctly, all you would need to do is: