Hi Alain, Alain Van Utterbeeck schrieb:
Hello,I'm writing a macro and have a problem: in my macro I insert a table in my document: args4(0).Name = "TableName" args4(0).Value = "Tabel1" args4(1).Name = "Columns" args4(1).Value = 3 args4(2).Name = "Rows" args4(2).Value = 2 args4(3).Name = "Flags" args4(3).Value = 11 dispatcher.executeDispatch(document, ".uno:InsertTable", "", 0, args4()) using dispatcher.executeDispatch(document, ".uno:InsertText", "", 0, args1()) dispatcher.executeDispatch(document, ".uno:JumpToNextCell", "", 0, Array()) I fill my table and JumpToNextCell automaticaly adds rows when I come to the last cell. I don't find however how to jump out of the table to continue and insert a new paragraph after my table. Any ideas how I get out of the table?
Precondition: The cursor is after the text in the bottom right cell. Recording it, I get dim args1(1) as new com.sun.star.beans.PropertyValue args1(0).Name = "Count" args1(0).Value = 1 args1(1).Name = "Select" args1(1).Value = false dispatcher.executeDispatch(document, ".uno:GoDown", "", 0, args1()) Kind regards Regina -- To unsubscribe e-mail to: [email protected] Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
