This Memory Stream donot have the whole content it contains only Evalution Warning Sheet when I am taking this stream out and displaying it in browser. I have a limitation that I cannot use Response Object in Excel.Save method. However if I save the objExcel to file on hard disk and open it and assign to stream then it is taking the whole content.
MemoryStream msSave = new MemoryStream();
byte exceldata = msSave.ToArray(); - this is about 6140 bytes. Should be 291840
Then I save the array to a database.
When trying to save it to a file it contains only 1 sheet instead of 6(my file is of 6 sheets)
FileStream fs = new FileStream("d:\\abc.xls", FileMode.Create, FileAccess.ReadWrite);
When I use this it works fine
saves all the data to file at specified path but donot save it in Memory Stream. I am right now using evaluation version. Please let me know is this a problem with evaluation version or with DLL.