This project is read-only.

When i create a pivot table and Chart, save the excel, use NPOI open it ,report "LeftoverDataException"

Feb 28, 2012 at 3:30 PM

"NPOI.HSSF.Record.LeftoverDataException: Initialisation of record 0xB6 left 6 bytes remaining still to be read.\r\n   在 NPOI.HSSF.Record.RecordInputStream.get_HasNextRecord()\r\n   在 NPOI.HSSF.Record.RecordFactoryInputStream.NextRecord()\r\n   在 NPOI.HSSF.Record.RecordFactory.CreateRecords(Stream in1)\r\n   在 NPOI.HSSF.UserModel.HSSFWorkbook..ctor(DirectoryNode directory, POIFSFileSystem fs, Boolean preserveNodes)\r\n   在 NPOI.HSSF.UserModel.HSSFWorkbook..ctor(POIFSFileSystem fs, Boolean preserveNodes)\r\n   在 NPOI.HSSF.UserModel.HSSFWorkbook..ctor(Stream s, Boolean preserveNodes)\r\n   在 NPOI.HSSF.UserModel.HSSFWorkbook..ctor(Stream s)\r\n   在 TrafficStatisticsAnalyzer.ExcelCreateChart.CreateExcelChartByTemplate(String TemplateFilePath, DataTable ExcelData, String ExcelFilePath, String SheetName) 位置 E:\\Code\\TrafficStatisticsAnalyzer\\TrafficStatisticsAnalyzer\\ExcelChart\\ExcelCreateChart.cs:行号 162" string

 

Do you have some method to solve or evade it!

I need create an chart excel file!

Jul 28, 2012 at 2:36 AM

你用的是哪个版本?