Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

NPOI.Util.RuntimeException: Buffer overrun i=6;endIndex=106502;writeIndex=106499 #158

Open
sampsonye opened this issue Dec 22, 2019 · 1 comment

Comments

@sampsonye
Copy link

 using (var stream = new MemoryStream())
{
   workbook.Write(stream);
}

ERROR:

NPOI.Util.RuntimeException: Buffer overrun i=6;endIndex=106502;writeIndex=106499
at NPOI.Util.LittleEndianByteArrayOutputStream.CheckPosition(System.Int32 i) at offset 64
at NPOI.Util.LittleEndianByteArrayOutputStream.Write(System.Byte[] b) at offset 45
at NPOI.HSSF.Record.AutoFilter.AutoFilterRecord.Serialize(NPOI.Util.ILittleEndianOutput out1) at offset 90
at NPOI.HSSF.Record.StandardRecord.Serialize(System.Int32 offset, System.Byte[] data) at offset 136
at NPOI.HSSF.Record.AutoFilter.AutoFilterRecord.Serialize(System.Int32 offset, System.Byte[] data)
at NPOI.HSSF.UserModel.HSSFWorkbook.SheetRecordCollector.Serialize(System.Int32 offset, System.Byte[] data) at offset 36
at NPOI.HSSF.UserModel.HSSFWorkbook.GetBytes() at offset 211
at NPOI.HSSF.UserModel.HSSFWorkbook.Write(System.IO.Stream stream) at offset 272
@xuxiaobo520
Copy link

解决了吗?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants