poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56557] Output file get corrupted with SXSSFWorkbook and "chart sheet"
Date Fri, 16 Jun 2017 09:24:53 GMT

--- Comment #5 from ligang <maligang1@huawei.com> ---
I have modified the method
org.apache.poi.xssf.streaming.SXSSFWorkbook.injectData(File, OutputStream)
at line 354.

if(xSheet!=null && !(xSheet instanceof XSSFChartSheet))

Since there is no <sheetData> in a chartsheet, XSSFChartSheet should not take
this if branch.(copyStreamAndInjectWorksheet(is,zos,xis) process the field

The trick works fine in my case.

You are receiving this mail because:
You are the assignee for the bug.
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message