14 messages in org.openoffice.fr.prog[prog] Re: Insertion texte dans tableau
FromSent OnAttachments
AlanJun 30, 2009 2:45 am 
Thibault VataireJun 30, 2009 3:47 am 
AlanJul 1, 2009 5:42 am 
Bernard MarcellyJul 2, 2009 2:18 am 
AlanJul 2, 2009 7:29 am 
Bernard MarcellyJul 2, 2009 2:18 pm 
AlanJul 3, 2009 12:29 am 
Thibault VataireJul 3, 2009 1:04 am.odt
AlanJul 6, 2009 12:26 am 
Thibault VataireJul 6, 2009 3:23 am 
AlanJul 6, 2009 6:29 am 
AlanJul 6, 2009 6:42 am 
AlanJul 7, 2009 3:26 am 
Thibault VataireJul 7, 2009 5:10 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[prog] Re: Insertion texte dans tableauActions...
From:Alan (alan@antsys.fr)
Date:Jul 6, 2009 12:26:16 am
List:org.openoffice.fr.prog

Bonjour,

Bon du coup j'ai tenté une autre approche. J'ai essayé de faire un copié/collé de la ligne de mon tableau via le dispatcher. Au niveau du code ça donne :

dim document as object document = ThisComponent.CurrentController.Frame

dim dispatcher as object dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

Cell = Table.getCellByPosition(0,1)

oText = Cell.getText() oCurseur = oText.createTextCursor() oCurseur.gotoEnd(True)

dispatcher.executeDispatch(document, ".uno:Copy", "", 0, Array())

Cell = Table.getCellByPosition(1,1)

oText = Cell.getText() oCurseur = oText.createTextCursor() oCurseur.gotoEnd(True)

dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array())

Mais je ne vais pas bien loin car il plante au niveau de la ligne : document = ThisComponent.CurrentController.Frame et je ne sais pas pourquoi...