Openpyxl corrupts Excel 2010 *.xlsx file

Issue #855 resolved
created an issue

File was created in Excel 2010, when i try use openpyxl (2.4.8) for generate something on it base i get "unreadable content" error message in Excel. Even without any modification:

wb = load_workbook('invoice.xlsx')
response = HttpResponse(content_type='application/')

I get error in Excel: "Excel found unreadable content in 'invoice.xlsx'. Do you want to recover teh contents of this workbook? If you trust the source of this workbook, click Yes. (Yes) (No)"

Comments (3)

  1. Log in to comment