Apache OpenOffice (AOO) Bugzilla – Issue 55806
Import of Word-document destroys contained fields
Last modified: 2013-02-07 22:33:38 UTC
First you should generate an empty Word-document (no matter if Word 2000, 2002 or 2003). You have to insert a MERGEFIELD, the field code should be something like MERGEFIELD "ZMSD/Vorname" /ID:"020DATEV.FieldExchange.ZMSDMandant#Vorname#des#Ma ndanten" /ATTR:N Hint: in MS Word you can toggle the visibility of field-codes with ALT+F9 Now that you inserted the field into the document you should save it in Word standard-document format (.doc). After you re-open the file in Writer the additional information of the field- code (ID and following information) is gone! Even if you save this document as ODT and inspect the resulting XMLs you won't find a trace of the additional information. Background: our software-solution for MS Office makes excessive use of these mailmerge-fields. If we don't find a way to transport the meta-data of the fields into the writer-documents we will find a remarkably lesser acceptance for the openoffice-based solution.
Problem is, that the MailMerge / Database field interface between Word and OO Writer is completely different. Writer needs a Word-like interface for better compatibility.
At the moment you convert the MERGEFIELD into a MailMerge already. Form my point of view you will have to generate a new Fieldmaster + according Textfield for each word-MERGEFIELD. Otherwise it will be quite difficult to find the identical Word-MERGEFIELDS that could be treated as Textfields that belong to one Fieldmaster. But that's not the point. Couldn't you store the whole Word-field-function in a separate Property of the fieldmaster? This would help for compatibility as well - as soon as you have to export the document back into Word.doc-format...
Since OO 2.0.2 the original fieldcode is provided as a property of the field after the import (fieldname = "FieldCode"). After SAVE of the document this information is lost, but that's understandable and no problem for me. Greetz, WU
*** Issue 97984 has been marked as a duplicate of this issue. ***
You wrote 'We are currently working on a solution as tracked in issue 55806'. Do you have a timeline, when this problem will be solved (issue 55806 is from 2006). Otherwise, I have to find another solution.
*** Issue 98468 has been marked as a duplicate of this issue. ***