Bug 121167 - FORMATTING: document (.xlsx) formatting deteriorates due to incorrect parameter order at styles.xml (<cellXfs><xf PARAMS ... />)
Summary: FORMATTING: document (.xlsx) formatting deteriorates due to incorrect paramet...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.1.2.1 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:xlsx
Depends on:
Blocks: XLSX
  Show dependency treegraph
 
Reported: 2018-11-04 23:10 UTC by Appik Ma
Modified: 2019-10-03 03:01 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Original document, result document, result document after excel saving, test program and source code for test program (538.39 KB, application/x-7z-compressed)
2018-11-04 23:13 UTC, Appik Ma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Appik Ma 2018-11-04 23:10:28 UTC
Description:
I have a template (.xlsx) with 1 formatting cell (aligment, height, width, wrap). It is perfectly displayed in Excel (2010) and Calc (6.1.2.1). 

Set value to second cell by C# code and EPPlus (test Console App .NET 4.7.1 and last EPPlus 4.5.2.1). Finally document is perfectly displayed only in Excel, but in Calc without good formatting. If open it in Excel and Save then new document is displayed perfectly in Calc too. I unpacking .xlsx and compared xl/styles.xml after epplus file and after excel saving. I find significant changes in block <cellXfs><xf PARAMS ... />, namely in the order of parameters. If get block <cellXfs> from Excel file and set it to epplus file, pack to .xlsx then it is displayed perfectly in Calc. 

Faced with this problem on a large template in production, this is a test example. Checked it on some machines. Later I will report a bug in EPPlus.

Steps to Reproduce:
1. Create new .xlsx document in Excel
2. Format "A2" cell - height, width, wrap, aligment, etc.
3. Set value to "A1" cell by EPPlus (and C# for example)


Actual Results:
Formatting "A2" cell is preserved in Excel, but no in Calc

Expected Results:
Formatting "A2" cell is preserved in Excel and Calc


Reproducible: Always


User Profile Reset: Yes



Additional Info:
I don't find "Add an Attachment", all files in cloud https://1drv.ms/f/s!ArAS3ailIBF4iexR4-0LtWwE3SFOQA 

Версия: 6.1.2.1 (x64)
ID сборки: 65905a128db06ba48db947242809d14d3f9a93fe
Потоков ЦП: 8; ОС:Windows 10.0; Отрисовка ИП: по умолчанию; 
Локаль: ru-RU (ru_RU); Calc: group threaded
Comment 1 Appik Ma 2018-11-04 23:13:41 UTC
Created attachment 146304 [details]
Original document, result document, result document after excel saving, test program and source code for test program
Comment 2 Xisco Faulí 2019-01-15 14:58:55 UTC
Thank you for reporting the bug.
it seems you're using an old version of LibreOffice.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 3 QA Administrators 2019-09-02 09:30:24 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2019-10-03 03:01:34 UTC
Dear Appik Ma,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp