Ok fellows, I solved it by myself, by casting the Cell into a XText -
object:

XText xCellText = (XText)UnoRuntime.queryInterface(XText.class, Cell);

Then I can simply call:

xCellText.getString();



                                                                           
             Tobias                                                        
             Hildebrandt                                                   
             <Tobias.Hildebran                                          An 
             [EMAIL PROTECTED]>          [email protected]                 
                                                                     Kopie 
             20.01.2006 15:39                                              
                                                                     Thema 
                                        [dev] [Java] get content of text   
              Bitte antworten           table - cell                       
                    an                                                     
             [EMAIL PROTECTED]                                             
                     g                                                     
                                                                           
                                                                           
                                                                           








Hi,

i`ve got a problem concerning texttables:

I iterate through a texttable in Writer, and get a Cell - object for every
cell the table contains.
For every cell, I want to read its content in a String and replace its
content with another String afterwards. The contents are simple texts.
The problem: a call of the method "Cell.getFormula()" always returns an
empty String.
But a call of the method "Cell.setFormula(String)" works without problems,
even when I call the method getFormula() again after I inserted a String,
the inserted String is being returned.
I have no idea how to retrieve the original cell content, as there is no
such thing as a .getText() - method...

Any hints?

---------------------------------------------------------------------
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]

Reply via email to