ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.64k stars 311 forks source link

Some XLS files open as Word documents #1617

Open mufeedali opened 6 days ago

mufeedali commented 6 days ago

This issue is unique.

Operating System

Windows 10 / 8.1 / 7

Version information

8.1.0.169

Expected Behavior

The xls file should open as a Spreadsheet.

Actual Behavior

The xls file opens as a Document.

Reproduction Steps

  1. Open certain XLS files.
  2. See it open as a Document rather than a spreadsheet.

Additional information

This doesn't happen with all XLS files, just some. Unfortunately, I cannot share the example file this happens with.

Excel warns me that the file format and extension don't match (which is probably why OnlyOffice opens it as a Word document), but I can force view it in Excel by clicking Yes when it asks if I want to view it anyway. I can't do the same with OnlyOffice. Basically, what I would need would be a way to force the file to open in "Spreadsheet" like Office lets me open in Excel maybe?

VladimirProkofiev52 commented 5 days ago

Hello! @mufeedali

I have reviewed your issue but unfortunately, I was unable to replicate it.

I kindly request that you provide the XLX file that opens as a document, or inform us how to create such a file.

We recently released a new version of our editor, 8.1.0.169. Please try updating to the latest version and let us know if the problem persists.

mufeedali commented 5 days ago

Qt Bug Tracker 2024-06-27T12_44_22+0000.xls

Here's an example

VladimirProkofiev52 commented 5 days ago

The file you attached is an HTML file, as indicated in its metadata.

Since HTML files contain textual information, our editor opens it as a document based on the file's content rather than its extension.

At this time, our spreadsheet editor does not support the conversion of HTML files. This feature is tracked as enhancement #62277.

Thanks for your report!

mufeedali commented 4 days ago

Okay thanks!