Seite 1 von 1

Re: Bitmap aus System-Clipboard in Writer-Dokument einfügen

Verfasst: Do, 22.08.2019 06:22
von Stephan
Ich würde das mit Dispatcher machen:

Code: Alles auswählen

sub Main
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

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

end sub


Gruß
Stephan