xlsxwriter
モジュールを使用してExcelファイルを作成して書きます。しかし、Excelファイルを開くと、次のようなポップアップが表示されます。Python xlsxwriter修復されたレコード:/xl/sharedStrings.xmlの文字列プロパティ(文字列)
We found a problem with some content in 'excel_sheet.xlsx'. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes.
[はい]をクリックすると、Repaired Records: String properties from /xl/sharedStrings.xml part (Strings)
と表示されます。
これは、私がwrite_rich_string
を使用して書き込んだセルのために発生することがわかりました。
my_work_sheet.write_rich_string(row_no, col_no,format_1, "Some text in format 1", format_2, "Text in format 2", format_1, "Again in format 1")
私は、これは発生しませんwrite_string
を使用して、それを記述する場合。 format_1
およびformat_2
には、フォント名、色、サイズ、垂直方向の配置が設定されています。
誰もがここで間違っていると示唆できますか?
私はXlsxWriterでこれについて[バグレポートの問題](https://github.com/jmcnamara/XlsxWriter/issues/425)を提出しました。 – jmcnamara