Spire.XLS is a professional Excel .NET library that can be used to any type of .NET( C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Fri Jul 30, 2021 8:09 am

Hello,

I'm currently trailing the free version of Spire.XLS. I have managed to convert one excel tab to HTML. That worked fine.
I want to take the whole workbook with multiple tabs and convert it to HTML. When I do this it creates an interactive html page with tabs which is fancy but I just want each tab to be displayed other after one another.. Just like how the PDF conversion works.

Is there a way to do this?

Thanks,
Ankeet

ankeetcoremont
 
Posts: 1
Joined: Fri Jul 30, 2021 7:55 am

Fri Jul 30, 2021 10:44 am

Hello Ankeet,

Thanks for your inquiry.
I am sorry that our Spire.XLS does not support converting Excel file with multiple worksheets to single page HTML without tabs. But we support saving a single worksheet as HTML (shown as below). Then you can combine these html into one HTML file.
Code: Select all
        Workbook workbook = new Workbook();
        workbook.LoadFromFile("test.xlsx");
        foreach(Worksheet sheet in workbook.Worksheets)
        {
            sheet.SaveToHtml(sheet.Name + ".html");
        }


Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1241
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.XLS