Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2073 Widoki

Hello, I am creating an excel report with help of report_xlsx in odoo version 15. in this excel report I want to increase the height of the cell how can I increase cell height?

Awatar
Odrzuć
Najlepsza odpowiedź

You can use set_row() function for that.

Help on method set_row in module xlsxwriter.worksheet:

set_row(row, height=None, cell_format=None, options=None)
Set the width, and other properties of a row.

Args:
row: Row number (zero-indexed).
height: Row width. (optional).
cell_format: Row cell_format. (optional).
options: Dict of options such as hidden, level and collapsed.

Returns:
0: Success.
-1: Row number is out of worksheet bounds.

Ref: https://stackoverflow.com/questions/36100593/python-xlsxwriter-change-row-height-for-all-rows-in-the-sheet


Awatar
Odrzuć