I'm using sample code and also my own written codes to add chart (Pie and Bar chart), ruin the excel file, and it throw error during opening.  Im trying to add chart to an excel which is loaded into MemoryStream, and exactly using the sample code.