Hallo,
I have a problem adding rows to XTextTable. I use the following code to add
rows in chunks - the call to insertByIndex(...) never returns and the
soffice.bin process takes about 50% of CPU. Code is like this:
*Code:*
com.sun.star.table.XTableRows rows = xTable.getRows();
for (int i = 0; i < list.length; i++){
if(row > currentRowCount){
int diff = expectedRowCount - currentRowCount;
if(diff > 100){
diff = 100;
}
rows.insertByIndex(currentRowCount, diff);
currentRowCount += diff;
}
//fill data in the cells in the row
It may be a coincidence, but it is working fine until rowcount*columncount <
65536 and not when this count is exceeded. In my case of 17 columns this
means 3855 rows.
Please let me know whether this limitation is real and known or there is
something that I may be doing wrong.
Thank you for your time
Georgyd