Saves Excel file to a MemoryStream object and returns it.
public MemoryStream SaveToStream()
MemoryStream object which contains an Excel file.
This method provides same function as Save method and only save the workbook as Excel97-2003 xls file. It’s mainly for calling from COM clients.