But to repeat this >100 time for all tables, I thought it might be faster to do it in a script.
First I record a macro while I am doing it manually. Then OO spits out something like:
Code: Select all
sub TableNoBreak
dim document as object
dim dispatcher as object
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "ParaKeepTogether"
args1(0).Value = true
dispatcher.executeDispatch(document, ".uno:ParaKeepTogether", "", 0, args1())
end sub
Now I select manually a cell in another table with a page break, and I execute this recorded macro, and then ... nothing happens, page breaks are still in the tables.
Before this, after installation of OO, I already did: Tools > Options... > OpenOffice > Security > Macro security... > Low
I didn't install JRE, isn't needed to run Basic macros? OO didn't complain.
Can anybody please tell me what am I doing wrong ?
An example file (with recorded macro) is attached.