if (!oCharts.hasByName("ChXDiagram")) {
oCharts.addNewByName("ChXDiagram", oRect, oAddr, true, true);
}
// get the TableChart
XTableChart oChart = null;
try {
oChart = (XTableChart) AnyConverter.toObject(
new Type(XTableChart.class),((XNameAccess)
UnoRuntime.queryInterface(
XNameAccess.class, oCharts)).getByName("ChXDiagram"));