I am using python 2.7 with docx and I would like to change the background and text color of cells in my table based on condition.
I could not find any usefull resour
It looks like instead of using the cell.text = "Something"
method you need to use the cell.add_paragraph("SomeText", a_style)
with a defined style - probably one of:
Full list here.
If you use the “default” template document - otherwise you will have to create your own.