Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active October 14, 2020 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/ea2cf4ff7fcda352aef0f0f2bbf056b1 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/ea2cf4ff7fcda352aef0f0f2bbf056b1 to your computer and use it in GitHub Desktop.
// 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);
// 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