Free Support Forum - aspose.com

Convert Word to Excel using Aspose.Words

We have an Aspose.Total license and would like to convert a Word document to Excel. I saw older posts here that refer to a zip file that is no longer available to achieve this. I also noticed that this is supported by the only service provided here: Convert WORD To EXCEL (aspose.app)

How can we achieve this using the .NET package?

@lpperras

You can use Aspose.Words to convert Word document to HTML and use Aspose.Cells to convert HTML to Excel document. Please refer to the following article about Word document to HTML conversion.

Following code examples shows how to convert HTML to Excel document.

// load the HTML file in an instance of Workbook
var book = new Aspose.Cells.Workbook("template.html");
// save HTML as XLS
book.Save("output.xls", Aspose.Cells.SaveFormat.Auto); 

Thank you very much for the fast reply. I was able to convert to HTML and then open it with Cells.