Bug 63889 - Corrupted PPTX in examplce
Summary: Corrupted PPTX in examplce
Status: RESOLVED CLOSED
Alias: None
Product: POI
Classification: Unclassified
Component: XDDF (show other bugs)
Version: 4.1.1-FINAL
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-28 13:59 UTC by Cesare Mauri
Modified: 2022-08-15 16:38 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cesare Mauri 2019-10-28 13:59:36 UTC
The problem occurs when a chart contains more than one line.
AE: http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/BarChartDemo.java
created a corrupted pptx when using msoffice. Openoffice manages it.
Comment 1 Alain Fagot Bearez 2019-11-30 01:25:11 UTC
fixed by r1870604
Comment 2 Sayi 2020-07-09 06:38:13 UTC
This solution(r1870604) caused a new bug in org.apache.poi.xwpf.usermodel.examples.BarChartExample, which can open word documents, but cannot open Excel data. 

There is no problem in the poi 4.1.0 version.
Comment 3 Sayi 2020-07-09 06:44:00 UTC
(In reply to Sayi from comment #2)
> This solution(r1870604) caused a new bug in
> org.apache.poi.xwpf.usermodel.examples.BarChartExample, which can open word
> documents, but cannot open Excel data. 
> 
> There is no problem in the poi 4.1.0 version.

I think that the size of the current series should be correctly calculated when xx.addSeries, and also need to update the Excel table.xml data.
Comment 4 Alain Fagot Bearez 2021-01-24 01:02:31 UTC
As my checks with the latest version are producing files which can be open with PowerPoint and Word, as well as editing the data through Excel, we need some more detailed report, including some information about the platforms and the versions of Microsoft Office used.

If you are using code adapted from the examples, we would also highly appreciate your sharing of this code.
Comment 5 PJ Fanning 2022-08-15 16:38:01 UTC
Closing due to lack of response from user.