I want to set width of column in excel report please help me/
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
Hi,
You can set the column width in excel report like this: sheet.set_column(2, 2, 20)
here 20 is the size set for the column, you can change it accordingly.
Also have a look at this explaining the same: How To Increase Column Width of Excel Report in Odoo
Thanks
what is the mean of the first 2 and second 2 one of them mean number of column and what about second 2 mean, and other question is if i have to set 3 column width 20 and next three 30 and so on then i have to set same like that for each column or we can create variable for that and can use that variable if yes then how we can create variable please.
Thanks.
sheet.set_column(i, j, size).
Where i ,j = the column index and size= the size of the column
eg . sheet.set_column(0, 0, 20) to set the size of the first column to 20 and sheet.set_column(0, 1, 20) to set the size of the second column to 20
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
2
mei 16
|
5090 | ||
|
0
dec. 22
|
4440 | ||
|
0
sep. 24
|
1382 | ||
|
2
jun. 18
|
7384 | ||
|
0
mrt. 18
|
3522 |