Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues when opened in Microsoft Excel #85

Closed
MinMatth-Magi opened this issue Dec 13, 2023 · 9 comments
Closed

Issues when opened in Microsoft Excel #85

MinMatth-Magi opened this issue Dec 13, 2023 · 9 comments

Comments

@MinMatth-Magi
Copy link

This issue is related to this discussion.

Many incoherences remain when the .ods files generated with SODS are opened in Microsoft Excel.

I'll focus my example on 3 columns of the following generated file: sodsExample.ods

Here, the file is opened in LibreOffice:
image

And here how it looks in Excel (without any edit, it is the exact same file):
image

We can notice that some cells don't keep their original value once opened in Excel, and they can even be duplicated. I have no idea why to be honest :/ Hopefully, you might !

Please tell me if you need anything more,
Matthieu

Copy link

Thanks for your report! Please ensure you have provided enough info in order to recreate the issue, including the problematic ODS File.

@miachm
Copy link
Owner

miachm commented Dec 13, 2023

Could you edit the file in Excel (so it's shown as expected). Save it and send the file back to me?

Need to see what Excel is expecting.

@MinMatth-Magi
Copy link
Author

Okay! Here are some files generated in different situations:

  • Created from scratch in Microsoft Excel, setting the correct data manually, saved into a .xlsx file and a .ods file.
  • The generated file saved into a .ods file (I couldn't save it as a .xlsx file, but saving it back as a .ods file kept the errors showing up in Microsoft Excel in the .ods file too).
  • The generated file saved into a .ods file after setting the correctly again.

All those files have been manipulated/saved in Microsoft Excel directly. But sadly it seems that I cannot save a .ods file, opened in Microsoft Excel, as a .xlsx file.

@miachm
Copy link
Owner

miachm commented Dec 18, 2023

Dam, I can't see a thing. I don't understand why Excel doesn't like it.

@MinMatth-Magi
Copy link
Author

Excel is mean ! 😞

Do you think you will still be able to look into it or will it be a dead end ?

For sure, there are some differences between the generated file and the manually fixed ods file that I saved from Excel. 🤔

@miachm
Copy link
Owner

miachm commented Dec 18, 2023

Of course there is a solution. But it's not that trivial like expected.

What I usually do is to rename the .ods to .zip. Then I extract the file and I check the XML tags for content.xml.

SODS XML tags are correct according the standard, that's why you can open it in Libre Office. But Excel doesn't follow the standard, it is expecting additional tags which are not documented.

The question is. Which tag?

miachm added a commit that referenced this issue Dec 22, 2023
@miachm
Copy link
Owner

miachm commented Dec 22, 2023

This was tricky, but I managed to test it in the Excel Online. It should have the same behaviour for the desktop Excel (well, I hope :))

@miachm
Copy link
Owner

miachm commented Dec 22, 2023

Sorry for the delay @MinMatth-Magi . It should be fixed now in 1.6.7

@MinMatth-Magi
Copy link
Author

That did the trick ! Thank you ! 😄
I'm closing the issue now.

Little detail I noticed: the '\n' doesn't seem to work in Microsoft Excel while it does in LibreOffice. But it's not much of an annoyance for me personally 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants