Bug 134143 - FILEOPEN XLSX borders are not compatible
Summary: FILEOPEN XLSX borders are not compatible
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-19 08:24 UTC by NSO LibreOffice Team
Modified: 2020-07-14 08:51 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
FILEOPEN XLSX borders are not compatible (73.70 KB, image/png)
2020-06-22 03:37 UTC, NSO LibreOffice Team
Details
Example file (4.74 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-07-09 02:26 UTC, NSO LibreOffice Team
Details
Example file (4.74 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-07-09 02:34 UTC, NSO LibreOffice Team
Details
Example file (8.00 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-07-13 05:55 UTC, NSO LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NSO LibreOffice Team 2020-06-19 08:24:51 UTC
If you set a solid border for table cells in Calc, they show as dotted lines in xlsx. 

Steps to Reproduce:
1) New spreadsheet
2) Select some cells and add solid line border
3) After saving to xlsx format, close the document
4) Open the document with Microsoft office, the solid line border becomes dotted line

Actual Results:
The solid line border becomes dotted line

Expected Results:
Show solid line border

Additional Info:
edition 6.4.4.2 (x64)
Regional language: zh CN (zh CN)_ Cn); UI Language: zh cn
Comment 1 NSO LibreOffice Team 2020-06-22 03:37:48 UTC
Created attachment 162283 [details]
FILEOPEN XLSX borders are not compatible

If you set a solid border for table cells in Calc, they show as dotted lines in xlsx. 

Steps to Reproduce:
1) New spreadsheet
2) Select some cells and add solid line border
3) After saving to xlsx format, close the document
4) Open the document with Microsoft office, the solid line border becomes dotted line
Comment 2 Xisco Faulí 2020-07-08 15:09:28 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 3 NSO LibreOffice Team 2020-07-09 02:26:02 UTC
Created attachment 162820 [details]
Example file

Hi, Xisco Faulí

This is the document that has been saved from Lo as MSO. Open it with MSO to see the effect directly.
Comment 4 NSO LibreOffice Team 2020-07-09 02:34:40 UTC
Created attachment 162821 [details]
Example file

Hi, Xisco Faulí

This is the document that has been saved from Lo as MSO. Open it with MSO to see the effect directly.
Comment 5 Xisco Faulí 2020-07-10 16:53:28 UTC
Hello,
Could you please create the document from scratch and save it as ODS and attach it ?
Comment 6 NSO LibreOffice Team 2020-07-13 05:55:41 UTC
Created attachment 162950 [details]
Example file
Comment 7 NSO LibreOffice Team 2020-07-13 05:59:25 UTC
(In reply to Xisco Faulí from comment #5)
> Hello,
> Could you please create the document from scratch and save it as ODS and
> attach it ?

Hi, Xisco Faulí

Created attachment 162950 [details]

Save this attachment as xlsx, open it again, and you will find that the solid line box becomes a dotted line box
Comment 8 Regina Henschel 2020-07-13 11:49:29 UTC
I think, that is mainly a problem of Excel not of LibreOffice. The dotted line is the way Excel renders a hairline. Excel has only a fixed set of line styles. These line styles include already the thickness, there exist no separate setting for thickness.
LibreOffice uses a mapping between LO styles and Excel styles, see
https://opengrok.libreoffice.org/xref/core/sc/source/filter/excel/xestyle.cxx?r=b7ed6de5#1608
In this case the line is 0.06pt and therefore falls into case hairline.
Details about mapping are in https://opengrok.libreoffice.org/xref/core/sc/qa/unit/data/README.cellborders?r=6777720c

Nevertheless one might consider to change the mapping to base it mainly on style and not on thickness.
Comment 9 NSO LibreOffice Team 2020-07-14 02:23:58 UTC
(In reply to Regina Henschel from comment #8)
> I think, that is mainly a problem of Excel not of LibreOffice. The dotted
> line is the way Excel renders a hairline. Excel has only a fixed set of line
> styles. These line styles include already the thickness, there exist no
> separate setting for thickness.
> LibreOffice uses a mapping between LO styles and Excel styles, see
> https://opengrok.libreoffice.org/xref/core/sc/source/filter/excel/xestyle.
> cxx?r=b7ed6de5#1608
> In this case the line is 0.06pt and therefore falls into case hairline.
> Details about mapping are in
> https://opengrok.libreoffice.org/xref/core/sc/qa/unit/data/README.
> cellborders?r=6777720c
> 
> Nevertheless one might consider to change the mapping to base it mainly on
> style and not on thickness.


Hi, Regina Henschel
I agree with you , Please help me change the status of this bug