【发布时间】:2014-10-16 21:34:31
【问题描述】:
我需要合并 Writer 表中的单元格,但在查找所拥有的单元格名称时遇到问题。
XCell xCell = getCell(column, row);
XTextTableCursor textTableCursor = null;
try {
textTableCursor = xTextTable.createCursorByCellName(???????????);
textTableCursor.goRight(mergeCol, true);
textTableCursor.goDown(mergeRow, true);
textTableCursor.mergeRange();
} catch (Exception ex) {
}
我需要了解如何获取XCell 的名称,或者如何根据short 列和行索引找到它,以便通过xTextTable.createCursorByCellName 获取XTextTableCursor 对象。
【问题讨论】:
-
参见:api.libreoffice.org/docs/idl/ref/… 那里 getCellByName([in] string aCellName)
-
这就是问题所在;我没有单元格名称。不过,我有单元格和 TextTable。
标签: java libreoffice openoffice-writer uno