We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Converting excel into single file HTML

Hi There,

We are using aspose cell to convert excel into HTML but I notice that it generates another folder which has static content (css,images etc). Is it possible to convert excel into one html file which has embedded css and no separate folder.



Thanks for your query.

Well, Aspose.Cells follows MS Excel standards and specifications in rendering HTML files.
Well, you have two options and you may choose any the following approaches to accomplish the task:

1) Use MHtml file format as an output file format from Excel workbooks.

2) Try to export every worksheet (in the workbook) to single HTML and then group these individual HTMLs to one (final) HTML by yourselves via e.g some tag control. In a loop, you may set active for each sheet and then render separate HTML file (based on every worksheet) via Aspose.Cells APIs. Please note, when exporting every worksheet to separate HTML, you would need to export image as base64 format (you will use HtmlSaveOptions class here) otherwise it will create folders.

Thank you.