Export Words table in Cells table

Hi Everyone,
I would just ask you what is the best way to extract one or more tables (with their data and styles) from a Words document and export them in Cells workbook(s).

Thank you all about the answers.

@servizi_generali_pa-group_com,

Thanks for your inquiry.

Could you please share some more detail about “Cells document”? We will then provide you more information about your query.

Sorry, I intended to say Cells workbook.
Take a table from Word (Words) document and export in Excel (Cells) worksheet (or workbook)

@servizi_generali_pa-group_com,

Thanks for sharing the detail. Aspose.Words does not provide API to export Word table into Excel. Please note that Microsoft Word and Microsoft Excel documents are completely different file formats. However, you can achieve your requirement using Aspose.Cells and Aspose.Words.

Please check the utility ConverterDoc2Xls in attachment to convert . Hope this helps you. ConverterDoc2Xls.zip (4.3 KB)

Document doc = new Document(@"table.docx");
ConverterDoc2Xls converter = new ConverterDoc2Xls();
Aspose.Cells.Workbook wb = converter.Convert(doc);
wb.Save(MyDir + "out.xlsx");

A post was split to a new topic: Convert DOCX/PDF to Excel

Tahir, cannot download the utility. Can you provide a public link?

Thanks,
Qin

@liuqin612,

Thanks for your inquiry. We have already answered your query in this post. Please follow that thread for further proceedings.