Download it now!
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: 2019-04-20 17:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

Spreadsheet with custom footer (30.50 KB, application/
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