bIsGroupColumn = true;
XTextRange xTextCell;
XCell xCell;
getTableColumns(TableName);
XTableRows xRows = null;
try
{
xRows = xTextTable.getRows();
}
catch (java.lang.NullPointerException e)
{
e.printStackTrace();
// TODO: handle the nullpointer right
// return;
}
for (int n = 0; n < xTableColumns.getCount(); n++)
{
for (int m = 0; m < xRows.getCount(); m++)
{
xCell = xCellRange.getCellByPosition(n, m);
xTextCell = (XTextRange) UnoRuntime.queryInterface(XTextRange.class, xCell);
String CompString = TableName.substring(4);
XTextCursor xLocCellCursor = TextDocument.createTextCursor(xCell);