Excel to HTML conversion only renders first page in .NET

Since the update from GroupDocs.Viewer 21.1 to 21.5, rendering Excel files seems to be broken.

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

Variable “info” shows that there are 3 pages, but it only renders the first one.
Specifying the page numbers manually did not help.

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

Was there some change I’m not aware of?
Excel viewing problem.zip (6.3 KB)

The worst thing is, that it does not seem to be file specific, as soon as there would be more than one page, additional pages don’t get displayed.

@Clemens_Pestuka

Thanks for reporting this issue. We’ve reproduced it at our end and. As you noticed it was introduced in 21.5. We’re investigating this issue and let you know when there any updates. The issue ID is VIEWERNET-3369.

1 Like

@vladimir.litvinchik

Thank you for taking care of this.
Please also let me know if there is some workaround available.
If not then I guess I have to downgrade to an older version for now.

@Clemens_Pestuka

You can try upgrading to 21.6 where this issue was partially fixed.

@vladimir.litvinchik

I tried that actually, but I did not notice any difference.

@vladimir.litvinchik

Okay I retested it, the behavior is indeed improved, I can at least convert all pages at one, but separate pages don’t seem to work properly.

@Clemens_Pestuka

When I was running this sample_app.zip (13.8 KB) three pages was created. Could you please try running it on your side?

@vladimir.litvinchik

Basically this works in 21.6

viewer.View(options);

But this is still broken:

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

but not for the first call. The first call works, only the second one fails silently.

@Clemens_Pestuka

Got it, thanks for the details.

@vladimir.litvinchik

May I also ask for an estimated time for a fix?
Would it help if I also create a paid support ticket to speed it up?

@Clemens_Pestuka

We’re planning to include the fix for this issue in the next release v21.7. New version will be available in a week or two. I’m sorry but I can’t give more precise date at the moment.

Since this issue has been already planned paid support ticket won’t speed it up.

1 Like

@vladimir.litvinchik

Thank you for the quick and detailed answer :slight_smile:

1 Like

@Clemens_Pestuka

This issue has been fixed. We’ll notify you here when the new version will be available.

Have a nice day!

1 Like

@vladimir.litvinchik

I’m very happy to hear that :+1:
Thank you :slight_smile:

1 Like

@Clemens_Pestuka

You’re welcome!

@Clemens_Pestuka

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

Have a nice day!

1 Like