I want to convert some data in my database to XLS (Excel) format. I used tablib
to do this and can get the Excel sheets in the proper format.
How do I specify names for individual sheets in my Excel file?
When exporting to Excel, the sheets have names from the Dataset.title
property (source code).
You can set the title in the Dataset
constructor:
dataset = Dataset(title="Sheet name")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With