Last active
January 11, 2023 17:10
-
-
Save aspose-com-gists/ac76f428602a8791ecc4f957e2309bb6 to your computer and use it in GitHub Desktop.
Word to Excel Conversion using 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 aspose.cells | |
from aspose.cells import Workbook, LoadOptions, LoadFormat | |
loadOptions = LoadOptions(LoadFormat.HTML) | |
workbook = Workbook(dataDir + "wordtoHtml.html", loadOptions) | |
workbook.save(dataDir +"wordtoexcel.xlsx") |
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
doc = aw.Document(dataDir + "sourceWordFile.docx") | |
doc.save(dataDir + "wordtoHtml.html", aw.SaveFormat.HTML) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment