Aspose.Cells.Workbook _doc = new Aspose.Cells.Workbook();
_doc.Open(new MemoryStream(template.TemplateFile));
template.TemplateFile contains the byte[] of an excel file.
I get the following exception :
System.IO.EndOfStreamException: Impossible de lire au-delà de la fin du flux.
à System.IO.__Error.EndOfFile()
à System.IO.BinaryReader.FillBuffer(Int32 numBytes)
à System.IO.BinaryReader.ReadUInt16()
à x4974cb5652d7d108.xd686a7cfdb7bddb2..ctor(BinaryReader reader)
à x4974cb5652d7d108.xd8c3135513b9115b.x2f7b1d8f41a4e758()
à x4974cb5652d7d108.xd8c3135513b9115b.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3)
à x4974cb5652d7d108.xd8c3135513b9115b..ctor(Stream stream)
à x2e38ab1759381034.x8b6071c5dcbbf539.x06b0e25aa6ad68a9(Stream xcf18e5243f8d5fd3)
à Aspose.Cells.Workbook.Open(Stream stream, FileFormatType type)
à Aspose.Cells.Workbook.Open(Stream stream)
à Triviumsoft.JobScheduler.AddIn.Report.ExcelEngine.ExcelEngine.BuildReport(IReportSettings report, TemplateConfiguration template, String culture, String connectionString)
I've attached the excel that give us problems.
Regards