Skip to content

Instantly share code, notes, and snippets.

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

Beth Kjos kjosib

💭
I may be slow to respond.
  • Houston, TX
  • 22:22 (UTC -06:00)
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')