again I have a problem. I looked through the documentation to solve it. May be I looked at the solution, but I did not see it!
I hope someone can destroy the wall.
I want to open some Docs and copy the entire content with formating and insert it into an other. So at least the new Doc shall contain the content of all the other Docs. If I record a macro, the result is this:
Code: Select all
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:SelectAll", "", 0, Array())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Copy", "", 0, Array())
Because the Docs are created temorarly I can not use "insertDocumentFromURL".
I hope some one can help me and thank you for trying it.
Peter