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
https://bz.apache.org/bugzilla/show_bug.cgi?id=56557

--- 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)
->
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
<sheetData>)


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


Mime
View raw message