Bug 77548 - FILEOPEN: Calc adds leading zeros to customised header/footer text in XLS
Summary: FILEOPEN: Calc adds leading zeros to customised header/footer text in XLS
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: XLS Calc-Header-Footer
  Show dependency treegraph
Reported: 2014-04-16 23:23 UTC by Henrik
Modified: 2022-11-06 03:38 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

Spreadsheet with custom footer (30.50 KB, application/vnd.ms-excel)
2014-04-16 23:23 UTC, Henrik

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik 2014-04-16 23:23:02 UTC
Created attachment 97485 [details]
Spreadsheet with custom footer

When opening an .XLS spreadsheet containing customized text in header or footer in Calc, six zeros are added before each portion of text.

Steps to reproduce:
1. Create spreadsheet in Excel (I'm using Excel for Mac 2011).
2. Add a header or footer with custom text (the problem doesn't occur when using the predefined headers and footers)
3. Save file as XLS (the problem doesn' occur when saving as XLSX)
4. Open file in Calc
5. Go to Format->Page->Header (or Footer)-> Edit
6. Observe the six zeros before the text

Other observations:
-When you've opened the file with Calc and save it, the zeros also appear when opening the document in Excel.

-If you delete the zeros, after having opened the file in Calc and then save it, the zeros doesn't appear when opening in Excel.

I've only tested with Excel for Mac 2011 (14.0.0).
The problem occurs in both 4.2.3 and current master (
I'm running OS X 10.9.1

I've attached a freshly produced spreadsheet, created in Excel for Mac 2011, with a predefined header and a custom footer. When opened in Excel the text in the footer is "Left" in the left section, "Middle" in the middle section, and "Right" in the right section.
Comment 1 Owen Genat (retired) 2014-07-18 13:17:50 UTC
I see the leading zeroes here as well under GNU/Linux using:

- v4.3.0.2 Build ID: 14ed55896fdfcb93ff437b85c4f3e1923d2b1409
- v4.4.0.0.alpha0+ Build ID: 3fdd4f069d5436cf39708004af7fda8175fbc4c2 (2014-07-09)

Confirmed. Status set to NEW. Operating system set to All. Summary edited for clarity.
Comment 2 Owen Genat (retired) 2014-07-18 13:30:10 UTC
Note: I have filed bug 81496 against the attachment in this bug as it can cause the current alpha build to crash. The custom page style is not handled well.
Comment 3 QA Administrators 2015-10-14 19:57:35 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2016-01-29 16:45:59 UTC
Header is fine, but footer is not.

Win 7 Pro 64-bit Version:
Build ID: 259c1ed201f4277d74dfd600fed8c837cbf56abc
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-01-27_00:45:12
Locale: fi-FI (fi_FI)
Comment 5 QA Administrators 2017-03-06 14:01:58 UTC Comment hidden (obsolete)
Comment 6 eisa01 2018-03-18 09:38:56 UTC
Still present in footer

Build ID: 8e8dd8f320a3ff59ff8a16c1a7a867888ce80700
CPU threads: 2; OS: Mac OS X 10.12.6; UI render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2018-03-13_23:59:29
Locale: en-US (en_US.UTF-8); Calc: group
Comment 7 QA Administrators 2019-03-19 03:49:29 UTC Comment hidden (obsolete)
Comment 8 eisa01 2019-04-20 17:33:23 UTC
This is still present

Also present in 3.3

Build ID: ea9c13be02ba731074fa4207944ff7df40a0fb5c
CPU threads: 2; OS: Mac OS X 10.13.6; UI render: default; VCL: osx; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2019-04-10_20:43:17
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 9 s7v5g7 2020-11-05 12:56:00 UTC
I have encountered this issue, and managed to find this bug report.

We are also using a custom header, with font formatting (grey text), results in the following:


I am guessing the numbers represent text color, and 000000 are for black as is in the original bug description. Our example shows 627D77 for grey color.

Version: (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 8; OS: Windows 10.0 Build 14393; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 10 QA Administrators 2022-11-06 03:38:24 UTC
Dear Henrik,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword

Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team