Issue 60332 - WW8: Follow style lost on round-trip
Summary: WW8: Follow style lost on round-trip
Status: REOPENED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 2.0.1
Hardware: All All
: P3 Trivial with 9 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL: http://www.ocf.berkeley.edu/~vincentj...
Keywords: ms_interoperability, oooqa
: 44520 73652 74673 78723 87070 104924 107347 108282 111468 111950 114934 (view as issue list)
Depends on:
Blocks:
 
Reported: 2006-01-11 00:08 UTC by vincentjorgensen
Modified: 2017-05-20 10:45 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
graphics explaining export issues and possible solution (23.78 KB, application/vnd.oasis.opendocument.graphics)
2008-02-26 20:49 UTC, cno
no flags Details
overview of related/dup issues with some comments (21.84 KB, application/vnd.oasis.opendocument.text)
2008-02-26 20:50 UTC, cno
no flags Details
Table related issue, proof of concept (16.18 KB, text/plain)
2009-11-07 01:07 UTC, mheffernan
no flags Details
.odg with screenshots showing different conversions of .odt with variations (182.37 KB, application/vnd.oasis.opendocument.graphics)
2009-12-16 09:30 UTC, cno
no flags Details
Testcase to show the problem. (11.71 KB, application/3dr)
2011-03-07 14:31 UTC, michael.ruess
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description vincentjorgensen 2006-01-11 00:08:54 UTC
Please reference the following ooforum.org thread where the problem originated:
http://www.oooforum.org/forum/viewtopic.phtml?t=29783

The Save As... Microsoft Word format deletes headers and footers from documents
on OpenOffice.org 2.0.1.  This problem does not exist in OO 1.1.5.  I created a
test case at the following URL to demonstrate the problem:
http://www.ocf.berkeley.edu/~vincentj/ooffice/

LoremIpsum.odt ---> The original OpenDocument Test file (with headers)
LoremIpsum20.doc ---> The Word document file I generated using OO 2.0 (headers
have been deleted)
LoremIpsum115.doc ---> The Word document file I generated using OO 1.1.5
(headers have been retained)
Comment 1 michael.ruess 2006-01-11 12:06:06 UTC
MRU->FLR: it looks, that the export has a problem with "Follow" page styles. The
format of the first page has been transferred to all other successive page
styles, so that the header/footer settings are lost.
Comment 2 flr 2006-05-18 14:28:30 UTC
flr: try to fix with next patch.
Comment 3 Mathias_Bauer 2006-08-30 14:55:44 UTC
assigned to hbrinkm
Comment 4 jr 2006-09-29 11:06:03 UTC
Any updates on this issue? Using next styles (esp. page style "First page" with
next style "Default") is very common. So is there a chance to retarget this
issue to 2.1?

Setting regression keyword as it worked fine in 1.1.5.
Comment 5 jr 2006-09-29 11:08:44 UTC
cc'ed jrahemipour
Comment 6 michael.ruess 2007-01-19 11:57:07 UTC
*** Issue 73652 has been marked as a duplicate of this issue. ***
Comment 7 michael.ruess 2007-02-20 08:51:44 UTC
*** Issue 74673 has been marked as a duplicate of this issue. ***
Comment 8 cno 2007-06-20 23:14:34 UTC
I think the key defect is that the property 'next style' in the page styles is
not exported correct.
Inserting hard break with different page style is exported correct.

But in effect it is impossible to work on a multi page document with
headers/footers and co-operate with someone using MsWord ...

I've created issue 78723 and attached my findings/examples.
Comment 9 michael.ruess 2007-06-25 11:18:03 UTC
*** Issue 78723 has been marked as a duplicate of this issue. ***
Comment 10 michael.ruess 2007-06-25 11:18:19 UTC
*** Issue 44520 has been marked as a duplicate of this issue. ***
Comment 11 denisfalqueto 2007-09-11 19:16:18 UTC
I am experiencing this too, but just with the footers. The headers seems to be
ok. I'm using version 2.2.0.
Comment 12 Mathias_Bauer 2007-12-04 13:30:36 UTC
target 3.0
Comment 13 cno 2008-02-26 20:47:54 UTC
Since there have been some dups and related issues as well as quite some
discussion (already months ago) about what can and cannot be achieved, I spent
some time for various scenario's and an overview.
The next attached .odg-file explains why exporting headers/footers (and not
possibly exporting margins) makes sense, IMO, and is possible.
The next attached .odt-file is an overview of the related/duplicate issues with
short comment.
Hope this helps.
Comment 14 cno 2008-02-26 20:49:37 UTC
Created attachment 51735 [details]
graphics explaining export issues and possible solution
Comment 15 cno 2008-02-26 20:50:37 UTC
Created attachment 51736 [details]
overview of related/dup issues with some comments
Comment 16 michael.ruess 2008-03-17 16:56:58 UTC
*** Issue 87070 has been marked as a duplicate of this issue. ***
Comment 17 michael.ruess 2008-04-02 13:36:44 UTC
.
Comment 18 michael.ruess 2008-04-02 13:37:46 UTC
Changed some internal Flags.
Comment 19 Mathias_Bauer 2008-04-25 17:23:22 UTC
The docx import filter consumed most of our resources in the "interop" area. Due
to that we must retarget this issue. -> 3.x
Comment 20 spadger 2008-11-07 15:30:36 UTC
I Have a similar issue where all headers and footers except those on the first
page are lost when exported from .odt to .doc when I have a table of contents. 

If I don't include a table of contents then the headers and footers seem to be
exported correctly
Comment 21 denisfalqueto 2008-11-07 15:44:55 UTC
Hi, see issue #58770. In version 3, for rtf, it can be easly fixed, but needs to
be done by someone with commit access.
Comment 22 openoffice 2008-11-10 14:37:55 UTC
duplicate

*** This issue has been marked as a duplicate of 58770 ***
Comment 23 Mechtilde 2008-12-06 20:13:34 UTC
duplicate -> closed
Comment 24 cno 2008-12-06 22:44:25 UTC
Sorry, but as written in issue 58770 (which this one was said to be a duplicate of):
"I doubt if solving this issue will solve 60332 as well.
Reason: denisfalqueto (Thu Nov 6 2008) writes: ".. the export does the right
thing for the header"
This is not the case for 60332 (and all dups)...
So I intend to reopen 60332. Any idea on this?"

... had no answer, so I reopen this, to be on the safe side!
Comment 25 mjneedles 2009-01-25 05:57:44 UTC
This is still an issue and, as reported above, it is related to "following page"
style. The following page style is not exported, all pages get the first page
style. This results in any header or footer on the following page(s) being lost.

This is a pretty important issue. Can we get a fix soon?

Thanks!
Comment 26 michael.ruess 2009-09-10 13:26:52 UTC
*** Issue 104924 has been marked as a duplicate of this issue. ***
Comment 27 fbartolom 2009-09-10 15:03:07 UTC
Still the referenced 3d does not give any solution either...
Once would expect a reference to a solution, not to a problem...
Comment 28 mheffernan 2009-11-07 01:07:24 UTC
Created attachment 65995 [details]
Table related issue, proof of concept
Comment 29 mheffernan 2009-11-07 01:08:28 UTC
I have conducted testing (OOO310m19 (Build:9420)) with the attached files, and I
believe this bug may be related to how the exporter is interpreting the first
carriage return on the new section (and associated new page style).

If the first line of the new section is a table, the exporter fails to copy the
correct style settings, but if you insert a CR as the first line before the
table, the exporter works correctly.

See attached for examples (example_resume_4_0_0.zip)
Comment 30 mheffernan 2009-11-07 01:10:41 UTC
*EDIT:

Confirmed this behavior is not present when exporting the same document (Built
with OO3.1.1) from OO2.4.3
Comment 31 michael.ruess 2009-12-01 14:00:38 UTC
*** Issue 107347 has been marked as a duplicate of this issue. ***
Comment 32 cno 2009-12-16 09:28:01 UTC
@hbrinkm: great that this issue is on the target list.
Some time ago I made an odg with an overview (in the time of issue 106126).
It shows screenshots of an odt document and its conversions to .doc and .rtf.
The odt has different header footer 1st/2nd page, different margins.
And two versions of that document: one with soft and one with hard page break.
The screenshots show the orinial, converted to .doc and .rtf, opened in OOo,
opened in MsW and edited there and back in OOo.

I'll attach the document.
If it is helpful, I can add some conversions to the overview.
Comment 33 cno 2009-12-16 09:30:36 UTC
Created attachment 66653 [details]
.odg with screenshots showing different conversions of .odt with variations
Comment 34 michael.ruess 2010-01-13 10:33:15 UTC
*** Issue 108282 has been marked as a duplicate of this issue. ***
Comment 35 eric.savary 2010-05-08 12:44:27 UTC
*** Issue 111468 has been marked as a duplicate of this issue. ***
Comment 36 michael.ruess 2010-05-31 12:09:20 UTC
*** Issue 111950 has been marked as a duplicate of this issue. ***
Comment 37 greenosity 2010-08-10 20:26:07 UTC
I have a similar problem when exporting a Writer document as xhtml. However, my
document only has a single page with a footer so there is no 'next style' issue.
The footer does not appear in the .xhtml output file. It *does* appear when Save
As... HTML document or Preview in Web Browser.
Comment 38 screamingindigital 2010-09-08 13:09:02 UTC
Does anyone know when this issue will finally be addressed?

I use the OpenOffice API for Java to electronically sign documents.  I had some 
crashing issues with OpenOffice 2.0 and 2.4, so I changed to 3.2.1 which has 
worked without any issues, except someone pointed out to me that the headers 
and footers are being deleted.

According to the issue activity information, it was initially reported on 
January 11, 2006.  A few entries were posted stating it would be fixed in 3.0, 
then 3.x, then 3.3, and finally back to 3.x.
Comment 39 michael.ruess 2010-10-06 12:15:14 UTC
*** Issue 114934 has been marked as a duplicate of this issue. ***
Comment 40 openoffice 2011-03-04 16:58:40 UTC
@mru: The attached proof of concept seems to be exported to doc correctly in DEV300_m100. However I do not see any page styles in there that do have follow page style other then themselves. Can you provide sample documents with pages styles having follow page style differing from themselves (i.e. A has follow style B, where B != A)?
Comment 41 michael.ruess 2011-03-07 14:31:56 UTC
Created attachment 76045 [details]
Testcase to show the problem.
Comment 42 michael.ruess 2011-03-07 14:42:52 UTC
MRU->HBRINKM: see attached sample; "First Page" is followed by "Default". In the exported, "default" loses the Headers and footers.
Comment 43 openoffice 2011-03-09 16:05:43 UTC
Analysis: Export works correctly. On import a page style "Convert 1" is created for the pages following the first page. The page style "First Page" from the ODT becomes page style "Default" after import. "Convert 1" is not set as follow of "Default".
Comment 44 cno 2011-03-09 21:51:05 UTC
  mru:  "In the exported, "default" loses the Headers and footers."
I confirm this, also in m100.

  hbrinkm: "Analysis: Export works correctly."
Sorry, but I do not understand this.
Comment 45 michael.ruess 2011-03-10 06:01:45 UTC
Cor,
this means, that the Export to WW8 format works fine - when opening the exported doc in WW, it looks good. "Only" the re-import into Writer fails.
Comment 46 cno 2011-03-10 08:31:10 UTC
Ah, I should have understood it that way indeed. Thanks Michael
Comment 47 Mathias_Bauer 2011-04-08 14:35:04 UTC
The regression (headers and footers get lost on export) is obviously fixed already. Thus the "regression" flag can be removed.
Comment 48 chopf 2013-11-14 22:56:58 UTC
I dont see an update on this ever getting fixed, but i just tested it on my Win7 machine running AOO 4.0.1, and saving to a .doc works just fine, Headers and footers are preserved both ways.
Comment 49 Marcus 2017-05-20 10:45:12 UTC
Reset the assignee to the default "issues@openoffice.apache.org".