calc creates a wrong XLSX file that opens with an error in MS Excel
Steps to Reproduce:
1. Open ODS from https://bugs.documentfoundation.org/attachment.cgi?id=156545
2. Save it as XLSX file
3. Open that XLSX file in MS Excel 2013
4. You'll see message about nonreadable content. If you'll press OK button then Excel will open your XLSX file
Excel shows me error message and repair a file
XLSX file should opens without any errors in Excel
User Profile Reset: No
Version: 22.214.171.124.alpha0+ (x64)
Build ID: ff566c67d67e96c97bcf4064b39df6998733c84e
CPU threads: 4; OS: Windows 10.0 Build 18362; UI render: default; VCL: win;
Locale: ru-RU (ru_RU); UI-Language: en-US
Created attachment 156547 [details]
Bad XLSX file
repro in 5.0.6 also
On Win10 with master sources updated today + Excel 2016, I could reproduce this.
I saw nothing in LO logs which could help and didn't see anything in event viewer for Excel part.
The font for B3 is: 'Liberation Mono;Courier New;DejaVu Sans Mono;Lucida Sans Typewriter'
Open XML SDK 2.5 complains that this is longer than MaxLength, which is 31. I don't know the exact specs, but unzipping the XLSX and trimming this very long font name inside xl/styles.xml, and then rezipping it produces a correct XLSX file.
(In reply to Aron Budea from comment #4)
> The font for B3 is: 'Liberation Mono;Courier New;DejaVu Sans Mono;Lucida
> Sans Typewriter'
But why and how could I set up several fonts for one cell in one time?
> Open XML SDK 2.5 complains that this is longer than MaxLength, which is 31.
> I don't know the exact specs, but unzipping the XLSX and trimming this very
> long font name inside xl/styles.xml, and then rezipping it produces a
> correct XLSX file.
Yeah, Excel make it when opens the file. I mean Excel cleans styles.xml file in that case itself
(In reply to Roman Kuznetsov from comment #5)
> But why and how could I set up several fonts for one cell in one time?
"You can enter several fonts, separated by semicolons. LibreOffice uses each named font in succession if the previous fonts are not available."
I think in some cases this could happen automatically, but not sure when. Not to this extent, just one font plus one fallback. Don't take my word for it, though.