Bonjour

import uno
def f1()
  model = XSCRIPTCONTEXT.getDocument()
  osheet = model.CurrentController.getActiveSheet()
  text.Cell("A4").setValue(121.5)
en fait c'est osheet.Cell que j'ai ecris bien sur, mais ca ne marche pas

essaye
oCell = oSheet.getCellRangeByName("A4")
oCell.Value = 121.5

attention
oCell.String = "toto" est egalement possible mais desynchro

Laurent

--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004

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

Répondre à