Bug 91194 - FILESAVE: xlsx doesn't retain spreadsheet dimension information (column characters)
Summary: FILESAVE: xlsx doesn't retain spreadsheet dimension information (column chara...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.4.2.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-10 01:58 UTC by daniel.trentman@gmail.com
Modified: 2016-09-26 09:14 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
excel data file to test (72.36 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2015-05-15 21:20 UTC, daniel.trentman@gmail.com
Details
Execution of in2csv before column removal (8.94 KB, text/plain)
2015-06-13 16:59 UTC, Carlos Rodriguez
Details
Execution of in2csv after column removal (21.13 KB, text/plain)
2015-06-13 17:02 UTC, Carlos Rodriguez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description daniel.trentman@gmail.com 2015-05-10 01:58:24 UTC
Dimension loses column characters. Does not retain spreadsheet dimension information (column characters) after:
-reading in excel produced .xlsx
-deleting the first sheet
-saving as .xlsx again

Trying to read in with in2csv the LibreOFfice (LO) .xlsx output is fine, even after making various edits.  Data from the first sheet shows:

tag: {http://schemas.openxmlformats.org/spreadsheetml/2006/main}dimension
dim: A1:AA2033

After deleting the first sheet and saving to .xlsx format from LO, the new first sheet dimension loses the column specification(numbers are right for the sheet):

tag: {http://schemas.openxmlformats.org/spreadsheetml/2006/main}dimension
dim: 1:8578

If the new first sheet is modified by inserting a first column and deleting it, the save to .xlsx then includes the column letters.

When doing the same thing using just excel, the column letters are not lost when a different sheet moves to the first position.

On OSX 10.9, LibreOffice 4.4.2.2
Comment 1 Buovjaga 2015-05-15 15:12:11 UTC
Please attach an example .xlsx produced by Excel (which version?).

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 2 daniel.trentman@gmail.com 2015-05-15 21:20:04 UTC
Created attachment 115635 [details]
excel data file to test

using : in2csv --sheet Sheet2
works with given file.
open LO, delete first column, save, run in2csv and the dimension loses the column letters (being reported by print tracing in
openpyxl-2.2.0_b1-py2.7.egg/openpyxl/worksheet/iter_worksheet.py before line 37

I have also found the same problem when deleting last rows of sheets but this simple column removal is easily reproduced.

Excel file is from OSX, MS Office 2011 version: 14.4.9 (150325)
Comment 3 Buovjaga 2015-05-17 11:01:06 UTC
I tried to install csvkit on Ubuntu 15.04 using these instructions, but none of the commands (like in2csv) run after an otherwise successful install (tried installing several times) : https://csvkit.readthedocs.org/en/0.9.1/install.html

We have to find someone, who can install csvkit or ping the csvkit devs to confirm this.
Comment 4 Buovjaga 2015-05-17 14:57:15 UTC
I was informed that this is a duplicate of a known bug, but I could not locate an existing bug.
In any case, we can forget about csvkit for now.
Comment 5 daniel.trentman@gmail.com 2015-05-19 20:53:09 UTC
don't need in2csv, it was just the tool being used that brought this to light.  If you perform the same 'delete first sheet and save' action, and then unzip the file, you will see that Sheet1.xml's contents includes the line with the missing columuun identifies:

<dimension ref="1:16"/>

I aslo could not find a similar bug. If you find out which bug this is a duplicate of, let me know and I will zoom in on the bug thread.
Comment 6 Carlos Rodriguez 2015-06-13 16:59:49 UTC
Created attachment 116502 [details]
Execution of in2csv before column removal
Comment 7 Carlos Rodriguez 2015-06-13 17:02:35 UTC
Created attachment 116503 [details]
Execution of in2csv after column removal

Following instructions to install csvkit on Debian Jessie 8 as root:

apt-get install python3-pip
pip3 install csvkit

And executing (not as root) before and after first column removal (Mount) through LibO:

in2csv --sheet Sheet2 test3.xlsx

Please note that the attached file is "test3.xlsx-3" and you have to rename it to "test3.xlsx"

I'm not sure if this dumps from "in2csv" are as expected. I can see some different way to show the data (despite of the column removal). In that case, I can confirm this bug on:

Versión: 4.3.7.2
Id. de compilación: 8a35821d8636a03b8bf4e15b48f59794652c68ba

Versión: 4.4.3.2
Id. de compilación: 88805f81e9fe61362df02b9941de8e38a9b5fd16
Configuración regional: es_ES

Version: 4.4.5.0.0+
Build ID: e37cf07d5fc9aaa7143cb98a71ee3c2662cfc263
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:libreoffice-4-4, Time: 2015-06-12_11:50:46
Locale: es_ES.UTF-8

Version: 5.0.0.0.beta3+
Build ID: c9be3ebba438d202906ddb9da05a27a7fb5c1ab6
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:libreoffice-5-0, Time: 2015-06-12_23:27:58
Locale: es-ES (es_ES.UTF-8)

Version: 5.1.0.0.alpha1+
Build ID: a9286c302e96258f32d13fb66aced25750e82cd3
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2015-06-13_00:03:04
Locale: es-ES (es_ES.UTF-8)
Comment 8 Buovjaga 2015-06-26 07:14:00 UTC
Daniel: can you comment on Carlos's findings? You can set this to NEW, if they match your issue.
Comment 9 daniel.trentman@gmail.com 2015-06-28 21:39:28 UTC
>I'm not sure if this dumps from "in2csv" are as expected. I can see some >different way to show the data (despite of the column removal). In that case, I >can confirm this bug on:

It appears that Carlos has verified the bug.  Setting to new as requested.  Note that in2csv is not needed as mentioned in Comment 5.
Comment 10 QA Administrators 2016-09-20 10:28:27 UTC Comment hidden (obsolete)
Comment 11 daniel.trentman@gmail.com 2016-09-26 01:37:55 UTC
as requested by the old bug checking notification, tested with

LibreOffice 5.2.1.2
OSX 10.10.5

Did the simple ';comment 5' test and it no longer exjoibits a problem.
Comment 12 Buovjaga 2016-09-26 09:14:22 UTC
Thanks. Setting to WFM.