You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2015/05/23 22:02:55 UTC

[Bug 54470] Solution to support Graph in XSSFWorkbook.cloneSheet method

https://bz.apache.org/bugzilla/show_bug.cgi?id=54470

--- Comment #5 from palmerr_2002@hotmail.com ---
Hi there,

I have run the sample code of "Guillaume de GENTILE", and I get new sheet
create with the data-table at the top but no chart object.
I get an Exception:
from Method:
updateRelationsSheetName
In class: class XmlNodeUtils
------------------------------------
while(it.hasNext()) {
                    XSSFChart chart = it.next();
                    //System.out.println("chart = " + chart);
                    CTChart c = chart.getCTChart();

             ERROR HERE:  Node node1 = chart.getCTChart().getDomNode();
                    updateDomDocSheetReference(node1, frwb, oldSheetName);

                    Node node2 = chart.getCTChartSpace().getDomNode();
                    updateDomDocSheetReference(node2, frwb, oldSheetName);

                }
                continue;

------------------------------------
Note that the variable/object : c , is not used in the code:
"CTChart c = chart.getCTChart();"

Hope Guillaume can debug this.

Regards,

P

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