Last active
October 14, 2020 16:23
-
-
Save aspose-com-gists/ea2cf4ff7fcda352aef0f0f2bbf056b1 to your computer and use it in GitHub Desktop.
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
// Open the Excel file | |
Workbook workbook = new Workbook("Excel.xlsx"); | |
// Create DOCX save options | |
DocxSaveOptions options = new DocxSaveOptions(); | |
options.ClearData = true; | |
options.CreateDirectory = true; | |
options.CachedFileFolder = "cache"; | |
options.MergeAreas = true; | |
// Save as DOCX | |
workbook.Save("Book1.docx", options); |
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
// Open the Excel file | |
Workbook workbook = new Workbook("Excel.xlsx"); | |
// Save as DOCX | |
workbook.Save("Book1.docx", SaveFormat.Docx); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment