Free Support Forum - groupdocs.com

Viewer cannot convert XLS files to html


#1

Hi, We have an evaluation license for the Viewer for .Net.(version 18.4.0.0) We have been testing different types of files but we found that when we try to convert to html any .xls files we get an error saying the file is corrupted or damaged. I can open those files without problems from the file system though. (Notice that .xlsx files are converted without any issues).

Is this a bug or is just that xls files are not supported?

Thanks.


#2

@pldev,

Thanks for using GroupDocs.Viewer and sharing your concerns with us.

GroupDocs.Viewer also supports rendering of documents with .xls extension. However, to investigate your issue at our end, we need you to please share with us the problematic .xls document and the source code you are using for rendering. We shall be looking forward to hearing from you.


#3

Hi Usman, thank you for the prompt response.

Please, find attached one of the files that is failing to be converted and the code we are using, below.

 public static List<PageHtml> RenderWithGridLinesInExcel(String DocumentName)
        {
            // Setup GroupDocs.Viewer config
            ViewerConfig config = Utilities.GetConfigurations();

            ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);

            // File guid
            string guid = DocumentName;

            // Set html options to show grid lines
            HtmlOptions options = new HtmlOptions();
            //do same while using ImageOptions
            options.CellsOptions.ShowGridLines = true;

            List<PageHtml> pages = htmlHandler.GetPages(guid, options);
            return pages;
        }

1234495.zip (7.5 KB)

Thanks


#4

@pldev,

Thanks for sharing with us the required details.

We are able to reproduce your reported issue at our end. We have logged it as VIEWERNET-1611 in our Issue Tracking System for further investigation. We’ll keep you informed in case of any updates.


#5

Hi, is there any update regarding this issue?

Thanks.


#6

@pldev,

Thanks for coming back to us.

I am afraid that, currently, we don’t have any updates regarding your reported issue. We’ll share the progress updates with you as soon as we have any. We appreciate your patience and cooperation in this regards.


#7

@pldev,

Your reported issue, logged as VIEWERNET-1611, has been resolved. The fix will be available in the upcoming version (v19.2) of GroupDocs.Viewer for .NET. We shall notify you here once the release is available.