je m'autoreponds pour vider le presse papier, je me suis aider de l'enregistreur de macro. c'est pas top mais ca marche... a l'issue on a dans le presse papier 2 caracteres vides.
sub vide_papier dim document as object dim dispatcher as object document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") dispatcher.executeDispatch(document, ".uno:GoToEndOfDoc", "", 0, Array()) dim args2(0) as new com.sun.star.beans.PropertyValue args2(0).Name = "Text" args2(0).Value = " " 'ici je mets le caractere asc "vide" alt+255 dispatcher.executeDispatch(document, ".uno:InsertText", "", 0, args2()) dim args3(1) as new com.sun.star.beans.PropertyValue args3(0).Name = "Count" args3(0).Value = 1 args3(1).Name = "Select" args3(1).Value = true dispatcher.executeDispatch(document, ".uno:GoLeft", "", 0, args3()) dim args4(1) as new com.sun.star.beans.PropertyValue args4(0).Name = "Count" args4(0).Value = 1 args4(1).Name = "Select" args4(1).Value = true dispatcher.executeDispatch(document, ".uno:GoLeft", "", 0, args4()) dispatcher.executeDispatch(document, ".uno:Copy", "", 0, Array()) end sub --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]