I'm trying to make a basic macro to create a table in a Writer document and I would like my table to have a it's cell to have a precise background color and border line (width and style).
I managed to create the table and set the background color with :
Code: Select all
vCursor = ThisComponent.CurrentController.getViewCursor ()
oTable = ThisComponent.createInstance ("com.sun.star.text.TextTable")
oTable.initialize (10, 5)
...
oTable.getCellByPosition(1,cpt).BackColor = RGB(51,204,102)
What is the right way to modify the line width and style of borders in tables ? If it's possible.