Could someone point me in the right direction for adding tables into writer row by row
I have found this so far which adds a single table at the current cursor
Code: Select all
'Get view cursor
vCursor = ThisComponent.CurrentController.getViewCursor ()
'Create a table
oTable = ThisComponent.createInstance ("com.sun.star.text.TextTable")
'Initialise table to have one row, three columns
oTable.initialize (1, 3)
oTable.setPropertyValue "BackTransparent", false
oTable.setPropertyValue "BackColor", 13421823
'Insert table at current cursor position
ThisComponent.Text.insertTextContent (vCursor, oTable, False)
(I am also replacing text in writer with basic if anyone needs example of this i have a example)
Thanks