Bug 116488 - Field in header in Docx, created in Word, not opened as a field
Summary: Field in header in Docx, created in Word, not opened as a field
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Header-Footer DOCX-Content_Control
  Show dependency treegraph
 
Reported: 2018-03-19 10:26 UTC by Jaime T
Modified: 2021-05-20 08:58 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
docx with the problem (13.78 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-03-20 10:58 UTC, Jaime T
Details
Simple reproducer document with date and text content control from Word (20.58 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-05-20 08:49 UTC, NISZ LibreOffice Team
Details
The example file saved with LO 6.4 (16.42 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-05-20 08:52 UTC, NISZ LibreOffice Team
Details
The original and LO-saved example files in Word (34.10 KB, image/png)
2021-05-20 08:58 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime T 2018-03-19 10:26:30 UTC
1. In Word create a new file, in the header insert a date field and set an easy to remember date, create a title field and set an easy to remember title.
Save the file (as .docx)
2. Open that file with writer, modify those fields and modify something in the normal text area, and save the file (in docx format) and close writer.
3. Open that file again with writer, the modified content is there.
4. Open that file again with word, the fields are not modified.
Comment 1 Jacques Guilleron 2018-03-20 09:37:41 UTC Comment hidden (obsolete)
Comment 2 Jacques Guilleron 2018-03-20 09:43:18 UTC Comment hidden (obsolete)
Comment 3 Jaime T 2018-03-20 10:58:59 UTC
Created attachment 140740 [details]
docx with the problem

In word I see 19/11/2011 Título Word

asdf


In Write I see 19/11/2011 Título Word modificado 2

asdf
Comment 4 Jacques Guilleron 2018-03-21 09:17:01 UTC
Hi Jaime,

I reproduce with
LO 6.1.0.0.alpha0+ Build ID: 8038911866f54f3921f51a2a1e702831c42f02fd
CPU threads: 2; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-03-17_23:12:09
Locale: fr-FR (fr_FR); Calc: CL
Comment 5 Cor Nouws 2019-02-05 21:16:08 UTC
the same in Version: 6.3.0.0.alpha0+
Build ID: 65f6a4088ad5d51a3225905aa6e2fa175f3eab49
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-02-03_17:11:18
Locale: nl-NL (nl_NL.UTF-8); UI-Language: en-US
Calc: threaded

3.3.0.4 doesn't show a field/text at all
Comment 6 NISZ LibreOffice Team 2020-11-27 08:09:42 UTC
This is a content control, not field.
Also the date in the documents header is just text, not field or anything fancy.
Comment 7 Timur 2021-03-11 16:33:09 UTC
Attached is already modified DOCX, not original from Word, as it should.
Also, unless this exact combination makes a problem, seems like 2 issues.

As for Title and Subject document properties: field from Word docx is read in Writer as text and not updated if title/subject is changed, but it's still saved to docx, so opens as last field content from Writer and updates correctly in Word. That would be a bug for itself. 
(like we had a bug on this but I cannot find).

As for "fields modified in LO are not modified when open in MSO", we should have a source DOCX from MSO and exact steps. Because I had different results when I tried. Not sure if it was about content or positions of those fields.
Comment 8 NISZ LibreOffice Team 2021-05-20 08:49:37 UTC
Created attachment 172190 [details]
Simple reproducer document with date and text content control from Word
Comment 9 NISZ LibreOffice Team 2021-05-20 08:52:49 UTC
Created attachment 172191 [details]
The example file saved with LO 6.4

Since 6.4 the date content control is imported and exported correctly as content control.
The text content control is still not imported as content control, but roundtrips to Word unchanged even in current nightly.
Comment 10 NISZ LibreOffice Team 2021-05-20 08:58:36 UTC
Created attachment 172192 [details]
The original and LO-saved example files in Word

Works fine. 
Textbox control not being correctly imported lives on as bug #137466