Skip to content

Instantly share code, notes, and snippets.

View kjosib's full-sized avatar
💭
I may be slow to respond.

Ian Kjos kjosib

💭
I may be slow to respond.
View GitHub Profile
# CauseBug.py
# Run this program. Open the generated file ('bugged.xlsx') in Excel 2007,
# hide row 8 or something, and save it back again. Close it, and re-open.
# It will cause the graphic to disappear and be considered as "corruption".
import xlsxwriter
workbook = xlsxwriter.Workbook('bugged.xlsx')
sheet = workbook.add_worksheet('Sheet1')