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

Free Support Forum - groupdocs.com

Certain XLSX to HTML conversion fails for certain file in .NET

Converting the attached file to HTML fails using GroupDocs.Viewer 21.7.
This issue does not happen with “SpreadsheetOptions.ForOnePagePerSheet();” option, only when the file is split up into multiple pages.

    using (var viewer = new Viewer(documentPath))
        var infoOpts = ViewInfoOptions.ForHtmlView();
        var info = viewer.GetViewInfo(infoOpts);
        var options = HtmlViewOptions.ForEmbeddedResources("output_viewer{0}.html");

The problem seems to happen on page 3, as conversion stops there.
This will produce no output:

        int[] pageNumbers = { 3 };
        viewer.View(options, pageNumbers);

GroupDocs.Viewer.Exceptions.GroupDocsViewerException: 'Invalid column index.'

dummy excel.zip (33.0 KB)


We have reproduced this issue on our side. It has been planned to fix in the next version (v21.8). We’ll update you when this issue will be fixed.

1 Like


That’s perfect, thank you :slight_smile:


You’re welcome!


This issue has been fixed. We’re planning to publish a version that includes the fix next week. We’ll notify you when the version will be available.

1 Like


GroupDocs.Viewer for .NET v21.8 that includes fix for this issue has been published. You can find the new version at

Have a nice day!