On 06/09/10 16:02, Peter Eberlein wrote:
though xSheetCellRanges.getCount() gives the correct answer,
xEnumeration.hasMoreElements() is false:
XCellRangesQuery xCellRangesQuery = (XCellRangesQuery)
UnoRuntime.queryInterface(XCellRangesQuery.class,xRange);
XSheetCellRanges xSheetCellRanges = xCellRangesQuery.queryEmptyCells();
JOptionPane.showMessageDialog(null, xSheetCellRanges.getCount()); //>0
XEnumerationAccess xEnumerationAccess = xSheetCellRanges.getCells();
XEnumeration xEnumeration = xEnumerationAccess.createEnumeration();
JOptionPane.showMessageDialog(null, xEnumeration.hasMoreElements());
//false
Am I doing something wrong here or it is a bug in version 3.2?
I have no problems with queryContentCells().
getCells returns a collection of the non-empty cells in the ranges, so
this result seems correct.
Niklas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org