Bernard Marcelly wrote:
Hi,
Hi, thanks for your comments!
Your Copy and Paste instructions work on the same range...
You have to select the origin range, Copy, select the destination range,
Paste.
I don't think this is the problem, unfortunately. This is a modified
version of my code, where I select something (nothing) at the end of the
document before pasting. The second print prints nothing, as I would
have expected. Also the final insertString actually inserts (as
expected) the string "THE END" at the end of the document...
So I guess the problem must be something else...
print rangeCursor.String
controller = doc.getCurrentController()
controller.select(rangeCursor)
frame = controller.getFrame()
properties = ()
dispatch_helper.executeDispatch(frame, ".uno:Copy", "", 0, properties)
rangeCursor.gotoEnd(False)
print rangeCursor.String
dispatch_helper.executeDispatch(frame, ".uno:Paste", "", 0, properties)
text.insertString(rangeCursor, "THE END", True)
--
peace, love & harmony
Atte
http://atte.dk | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]