Thanks a lot, I'll try that.
Niklas Nebel
<[EMAIL PROTECTED]
.COM> An
[email protected]
11.11.2005 11:55 Kopie
Thema
Bitte antworten Re: [dev] Java / Problem with
an search in Calc - Document
[EMAIL PROTECTED]
g
Tobias Hildebrandt wrote:
> Hi, I have a problem with a search in a calc document.
> I have a document with various keywords, which are searched and saved in
a
> XIndexAccess. Then I cast the XIndexAccess elements in XCell objects.
> This until now worked fine.
> But an error occurs, if two (or more?) keywords are in neighbouring
cells.
> Then only one of the two keywords is being found (the first one, I
guess),
> and even the XIndexAcess element with the keyword that has been found
> cannot be casted in a XCell object (NullPointerException).
> This happens no matter if the keywords are in cells which are side by
side,
> or on top of each other.
> Anybody ever experienced this error, and / or know how to solve it (if
it`s
> not a bug)?
findAll returns a SheetCellRanges object. You can loop through each
range, or use the XSheetCellRanges interface's getCells method to
iterate through all non-empty cells directly.
Niklas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- [dev] Java / Problem with search in Calc - Document Tobias Hildebrandt
- Re: [dev] Java / Problem with search in Calc - Doc... Niklas Nebel
- [dev] Antwort: Re: [dev] Java / Problem with s... Tobias Hildebrandt
- [dev] New OO-Api wrapper "noa" Tobias Hildebrandt
- Re: [dev] New OO-Api wrapper "noa" Daniel Naber
- Re: [dev] New OO-Api wrapper "noa&quo... Haris Peco
- Re: [dev] New OO-Api wrapper "noa... Rich
- [dev] Antwort: Re: [dev] New OO-Api wr... Tobias Hildebrandt
- Re: [dev] Antwort: Re: [dev] New ... Haris Peco
- [dev] Antwort: Re: [dev] Antw... Tobias Hildebrandt
- Re: [dev] Antwort: Re: [d... Haris Peco
