This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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') |