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

Free Support Forum - aspose.com

How can we convert a specific sheet to html

I have 10 sheets in my excel and i want to export those to individual html file. AlsoI need a single HTML file without the tab bar at the bottom. Even hidden it creates all the worksheets in a sub-directory. I need a single HTML file with no sub-directory or extra files with the one sheet that is visible. Thanks in advance.


See the following sample code for your requirements for your reference:
Sample code:

        Workbook workbook = new Workbook("f:\\files\\Book1.xlsx");
        WorksheetCollection worksheetCollection = workbook.getWorksheets();
        int worksheetCount = worksheetCollection.getCount();
        HtmlSaveOptions options = new HtmlSaveOptions();
        for (int i = 0; i < worksheetCount; i++) {
            options = new HtmlSaveOptions();
            workbook.save("f:\\files\\out_" + i + ".html", options);

Hope, this helps a bit.

Thanks a lot for your help and the code snippet.
This indeed solved our concern. :slightly_smiling_face:


Good to know that the suggested code segment works for your needs. Feel free to write us back if you further queries or comments.