Hello Niklas,

This is a working example:

        unoidl.com.sun.star.table.XCell xCell = Current.getCellByPosition(1,
0);
        unoidl.com.sun.star.text.XText xText =
(unoidl.com.sun.star.text.XText)xCell;
        xText.getString();
        Console.WriteLine(xCell.getFormula());
        Console.WriteLine(xText.getString());

Thanks for your help.

------------------------------
Paul Veuve
[EMAIL PROTECTED]
------------------------------
CDI CONSEILS ET DEVELOPPEMENTS
INDUSTRIELS SA
Chemin de la Justice 15
CH-2000 NEUCHATEL
------------------------------
http://www.cdisa.ch

Phone  (+41 32) 733 31 31 
   or  (+41 78) 600 31 31

  Fax  (+41 32) 733 31 32
------------------------------
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : lundi, 27. novembre 2006 10:37
À : [email protected]
Objet : Re: [dev] Calc - Get cell formula resolved

Paul Veuve wrote:
> I am using uno - c#, but there is no getSting method in xCell object 
> defined (unoidl.com.sun.star.table Xcell interface)

The cell object also supports the com.sun.star.text.XText interface, and
thus com.sun.star.text.XTextRange with its getString method.

Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.14.17/553 - Release Date: 27.11.2006
04:00
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.21/589 - Release Date: 15.12.2006
17:10
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to