Edited file is corrupted when saved.
Created originally on Bitbucket by khchine5 (Khchine Hamza)
Hi Eric, I tried to edite my xlsx file with openpyxl , but when i call the function save(file_path_des) , i get this error. AttributeError: 'Worksheet' object has no attribute 'write_header'
and the full log:
File "D:\Openerp\src\openerp-7.0-20140204-002725\openerp\addons\nrb_nrsol\lot\anme_lot.py", line 294, in generer_form_02
new.save(file_path_des)
File "C:\Python27\lib\openpyxl\workbook.py", line 263, in save
save_dump(self, filename)
File "C:\Python27\lib\openpyxl\writer\dump_worksheet.py", line 254, in save_dump
writer.save(filename)
File "C:\Python27\lib\openpyxl\writer\excel.py", line 170, in save
self.write_data(archive)
File "C:\Python27\lib\openpyxl\writer\excel.py", line 98, in write_data
self._write_worksheets(archive, shared_string_table, self.style_writer)
File "C:\Python27\lib\openpyxl\writer\dump_worksheet.py", line 272, in _write_worksheets
sheet.write_header()
AttributeError: 'Worksheet' object has no attribute 'write_header'
Attachments: Formulaires_02.xlsxFormulaires_02_out.xlsxFormulaires_02_1787.xlsx