Domanda

I'm trying to use xlwt with row.(i).height, but I had no result.

My Code:

import xlwt
book = xlwt.Workbook(encoding='latin-1')
sheet = sheet.add_sheet('KPI.TiempoRespuesta',cell_overwrite_ok=True)
sheet.write(1, 4, "BLABLABLABLABLABLABLABLABLABLABLABLA")
sheet.row(4).height = 256*20
book.save("book.xls")

I want to augment cell height ;/, but row.(i).height do nothing

È stato utile?

Soluzione

You should tell xlwt row height and default font height do not match:

sheet.row(4).height_mismatch = True
sheet.row(4).height = 256*20
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top