Learn how to enable or diable compatibility checker in Excel files using Python: https://blog.aspose.com/2021/12/08/disable-excel-compatibility-checker-in-python/
Last active
February 16, 2022 06:56
-
-
Save aspose-com-gists/8e93f456ca967bd7c9781069dd22a49b to your computer and use it in GitHub Desktop.
Enable or Disable Compatibility Checker in Excel in Python
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
import jpype | |
import asposecells | |
jpype.startJVM() | |
from asposecells.api import Workbook | |
# load Excel workbook | |
wb = Workbook("workbook.xls") | |
# disable compatibility | |
wb.getSettings().setCheckCompatibility(False) | |
# save workbook | |
wb.save("workbook_disabled_compatibility.xls") | |
print("Done...") | |
jpype.shutdownJVM() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment