Bug 81426 - FILESAVE: Data from header and footer is getting lost in DOCX (continuous sections)
Summary: FILESAVE: Data from header and footer is getting lost in DOCX (continuous sec...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
Whiteboard: BSA
Keywords: bibisectRequest, filter:docx
: 116959 (view as bug list)
Depends on:
Blocks: DOCX-Section
  Show dependency treegraph
Reported: 2014-07-16 11:27 UTC by Rajashri
Modified: 2020-02-09 06:06 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:

Original File (499.91 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-07-16 11:27 UTC, Rajashri
Round Trip document (257.08 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-07-16 11:28 UTC, Rajashri
385_docx.pdf: MSWord2003's view of the first 4 pages (94.04 KB, application/pdf)
2017-03-11 07:40 UTC, Justin L

Note You need to log in before you can comment on or make changes to this bug.
Description Rajashri 2014-07-16 11:27:05 UTC
Created attachment 102915 [details]
Original File

Problem description: 

Steps to reproduce:
1. Open the file in LibreOffice
2. Save the file in Docx format
3. Open the file in Microsoft Office

Current behavior:
Data from header and footer is getting lost.
Expected behavior:
Header and footer data should be preserved.
Operating System: All
Version: Master
Comment 1 Rajashri 2014-07-16 11:28:25 UTC
Created attachment 102916 [details]
Round Trip document
Comment 2 Jorendc 2014-07-16 11:33:06 UTC Comment hidden (obsolete)
Comment 3 Xisco Faulí 2015-08-20 13:28:10 UTC
Problem still present in

Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
Locale: es-ES (es_ES)

on Windows 7 (64-bit)
Comment 4 tommy27 2015-11-03 06:27:40 UTC Comment hidden (obsolete)
Comment 5 Cor Nouws 2016-05-09 08:36:57 UTC Comment hidden (obsolete)
Comment 6 mahfiaz 2016-08-04 16:28:18 UTC Comment hidden (obsolete)
Comment 7 hausheer@bluewin.ch 2016-11-30 10:29:07 UTC
Problem still ocurs in Version

in Libre Calc, saved as XLT.
Comment 8 Justin L 2017-03-11 07:40:20 UTC
Created attachment 131810 [details]
385_docx.pdf: MSWord2003's view of the first 4 pages

This document is an enhancement request since it uses formatting that LibreOffice doesn't currently mimic.

There are four continuous sections defined on page1.  The fourth section contains the desired header/footer for the following pages.  It spills over onto page2, and thus in MSWord, that becomes the header/footer for that page. LibreOffice only assigns header/footers to page styles, not continuous sections.

Section 5 is defined at the top of page 11, first applies to the Vendor Information page and continues to the end of the document. 

The authors of this document ought to have used nextPage sections instead of continuous sections since, at each section change, a pagebreak was appropriate. In that case it would have worked.
Comment 9 Justin L 2018-08-23 14:26:42 UTC
*** Bug 116959 has been marked as a duplicate of this bug. ***
Comment 10 Xisco Faulí 2019-11-29 13:27:33 UTC
Changing priority back to 'medium' since the number of duplicates is lower than 5
Comment 11 Samuel Mehrbrodt (CIB) 2019-12-19 17:19:38 UTC
This seems to work in

Build ID: 6015634de5ada0f9dda9bb4354b2939d8f015a27
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: gtk3; 
Locale: de-DE (de_DE.UTF-8); UI-Language: en-US
Calc: threaded
Comment 12 Timur 2019-12-20 21:02:16 UTC
I'm not in favor of simple closing this one if not fully resolved all header issues. 
There's an improvement with headers and I set bibisectRequest. But not with all.

No header and footer are shown in Vendor Information when re-opened in MSO or LO. And that's the remaining bug.
Also, in whole document and also in Vendor Information, line is missing in footer. Would be nice if resolved with previous.