You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jopend...@googlegroups.com
Hi, I faced a problem while reading a text cell-by-cell with jopenDocument. If a cell consists of a few merged cells, I can only read the text from the first one, all other cells in this group give me an exception when trying to read them
I understand, that other cells, except first in a merged group, are non-existent, but how do I now that, how to skip them? Is there a special way around in a lib or I have to catch this exception and move to the next cell?
donal...@gmail.com
unread,
May 30, 2014, 3:47:03 PM5/30/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jopend...@googlegroups.com
On Wednesday, May 14, 2014 7:39:26 AM UTC-4, Anton Lukashchuk wrote:
[...]
I understand, that other cells, except first in a merged group, are non-existent, but how do I now that, how to skip them? Is there a special way around in a lib or I have to catch this exception and move to the next cell?
(Not tested): Have you tried using getColumnsSpanned() to find out how "wide" the cell is? Instead of advancing from one column number to the next with `col++', perhaps `col += cell.getColumnsSpanned()' would do the trick. (Similarly for `row++' and `row += cell.getRowsSpanned()'.)
Just a guess...
Anton Lukashchuk
unread,
May 31, 2014, 7:17:31 AM5/31/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jopend...@googlegroups.com
Thanks, i will try this. Now I solved the problem with sheet.getImmutableCellAt() instead of getCellAt, it works without trowing exception, no matter if the cell is merged or not, I only read anyway.