Reputation: 7269
Is there a way to write something into an XLS file with python while keeping the initial format of this XLS file unchanged (such as font size, cell background color, etc)Thanks!
Upvotes: 2
Views: 837
Reputation: 45542
If the available tools like xlrd, xlwt, and xlutils don't work, you may have to fall back to programmatically editing the file with Excel via COM. Of course, you'll need a copy of Excel, have to work from Windows, and it will be slower than other approaches.
Upvotes: 0
Reputation: 16525
If you can go for XML serializations of Office documents. Also have a look at ... http://www.python-excel.org/
Upvotes: 0
Reputation: 227418
Maybe have a look at xlrd, xlwt, xlutils:
I have found it pretty useful in the past.
Upvotes: 2