Bug 47252 - FILESAVE: cross-references do not export well to DOCX file
Summary: FILESAVE: cross-references do not export well to DOCX file
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 3.4.4 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact: Florian Reisinger
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-12 14:30 UTC by Alan Krueger
Modified: 2013-04-08 15:24 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Alan Krueger 2012-03-12 14:30:46 UTC
Added cross-reference links in an ODT file to numbered paragraphs earlier in the document using "Reference".  In Writer, this shows up as the name of the paragraph being referenced.  These look fine until exported to DOCX.

Opening the DOCX file back in Writer shows the reference text as __RefNumPara__173_1178930885.  Typing around these refs in Writer appears to fix them.

Looking at the DOCX archive, word/document.xml appears to actually have the reference ID as text:

<w:r><w:rPr/><w:fldChar w:fldCharType="begin"/></w:r>
<w:r><w:instrText> REF __RefNumPara__173_1178930885 \h </w:instrText></w:r>
<w:r><w:fldChar w:fldCharType="separate"/></w:r>
<w:r><w:t xml:space="preserve"> __RefNumPara__173_1178930885</w:t></w:r>  <!-- here -->
<w:r><w:fldChar w:fldCharType="end"/></w:r>
Comment 1 sasha.libreoffice 2012-06-05 02:08:53 UTC
Thanks for bugreport. Slightly resembles this Bug 46025
Comment 2 bfoman 2012-08-09 12:01:48 UTC
Checked with:
LO 3.5.5.3 
Build ID: own W7 debug build
Windows 7 Professional SP1 64 bit

(In reply to comment #0)
> Opening the DOCX file back in Writer shows the reference text as
> __RefNumPara__173_1178930885.  Typing around these refs in Writer appears to
> fix them.

Could not reproduce.
Comment 3 Florian Reisinger 2013-04-08 15:24:35 UTC
Confimed with 3.6.6.2 4.0.1.2 and master:

Steps I used to reproduce:
1) Insert image
2) Add caption to the image
3) Try to cross reference
4) Save as .docx
5) Open in Word 2010 or in LibO and see it didn't work (The result is not exactly the same, but the problem)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.