|
RE: Calc - Get cell formula resolved: msg#00131openoffice.devel.general
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 vep@xxxxxxxx ------------------------------ 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 : Niklas.Nebel@xxxxxxx [mailto:Niklas.Nebel@xxxxxxx] Envoyé : lundi, 27. novembre 2006 10:37 À : dev@xxxxxxxxxxxxxx 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: dev-unsubscribe@xxxxxxxxxxxxxx For additional commands, e-mail: dev-help@xxxxxxxxxxxxxx -- 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 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Calc C#CLI programming - Get the used range in a sheet - XUsedAreaCursor: 00131, Paul Veuve |
|---|---|
| Next by Date: | Re: Calc C#CLI programming - Get the used range in a sheet - XUsedAreaCursor: 00131, Gerrit Jasper |
| Previous by Thread: | RE: Calc C#CLI programming - Get the used range in a sheet - XUsedAreaCursori: 00131, Paul Veuve |
| Next by Thread: | Slow opening: 00131, RAMI REFAAT MASSOUD |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |