Excel to HTML uses global styles in .NET

Hi,

using GroupDocs.Viewer 24.2 to convert the any XLSX to HTML, adds styles for TR and TD.
image.png (10.6 KB)

Those global styles interfere with our web application and it would be great, if they could be removed / renamed.
Excel global style.zip (9.0 KB)

        using (var viewer = new View.Viewer(documentPath))
        {
            var options = ViewOpts.HtmlViewOptions.ForEmbeddedResources("output_viewer{0}.html");
            //options.SpreadsheetOptions = ViewOpts.SpreadsheetOptions.ForOnePagePerSheet();
            //options.SpreadsheetOptions.RenderGridLines = true;
            //options.SpreadsheetOptions.RenderHeadings = true;
            viewer.View(options);
        }

The problem seems to happen in both cases, with and without the commented out code.

Hi Clemens!

Thank you for describing the issue and sharing the screenshot, input and output sample files. We have reproduced the reported issue and obtained the same results as in your case. We logged this issue in our internal bug tracker under the ID #VIEWERNET- 4761. As soon as we have any updates we’ll let you know.

Thanks!

1 Like

Hi Clemens!

We have implemented a solution for a described issue in the GroupDocs.Viewer for .NET version 24.3, which you can find in GroupDocs.Downloads (Download DLL C# Library to View Documents | GroupDocs API) or on NuGet. This fix is described in details in GroupDocs.Viewer documentation here: Render Excel and Apple Numbers spreadsheets as HTML, PDF, and image files | Documentation

Thanks for pointing this issue out to us!

1 Like

@denisgvardionov
Hi Denis,

I can confirm that the issue is resolved with the latest version :slight_smile:
Thanks a lot for your help and the quick bugfix!

Glad that it helped to solve the issue. You’re welcome!