Adding comment to quickpart causes corruption


J

Jay Ward

Steps to reproduce:

1) Create a new Word 2007 document: test1.docx
2) Insert a quickpart (select the Subject document property)
3) Type "This is the subject" in the Subject quickpart
4) Save document and close Word
5) Open document (document is OK at this point)
6) Put cursor in the quickpart, attempt to insert a new comment (option
disabled)
7) Click on the quickpart handle (selects entire quickpart), new comment
option is now enabled.
8) Insert comment: "this is a comment"
9) Close document and Word
10) Open document with Word, error as follows:
The file Test1.docx cannot be opened because there are problems with the
contents
Details
Unspecified error
Location: Part: /word/document.xml, Line:2, Column: 1340

You can choose to fix the document, but the comment is stripped out.

Column 1340 in the xml corresponds to the last character of the </w:sdt> tag
in this xml:

<w:document
xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
xmlns:w10="urn:schemas-microsoft-com:eek:ffice:word"
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">
<w:body>
<w:commentRangeStart w:id="0" w:displacedByCustomXml="next"/>
<w:sdt>
<w:sdtPr>
<w:alias w:val="Subject"/>
<w:id w:val="505181345"/>
<w:placeholder>
<w:docPart w:val="9744F0CD4E074711BEA5270B0FBA4D62"/>
</w:placeholder>
<w:dataBinding
w:prefixMappings="xmlns:ns0='http://purl.org/dc/elements/1.1/'
xmlns:ns1='http://schemas.openxmlformats.org/package/2006/metadata/core-properties'
" w:xpath="/ns1:coreProperties[1]/ns0:subject[1]"
w:storeItemID="{6C3C8BC8-F283-45AE-878A-BAB7291924A1}"/>
<w:text/>
</w:sdtPr>
<w:sdtContent>
<w:p w:rsidR="00345251" w:rsidRDefault="007E67C3">
<w:r>
<w:t>This is the subject</w:t>
</w:r>
<w:r w:rsidR="004A4126">
<w:rPr>
<w:rStyle w:val="CommentReference"/>
</w:rPr>
<w:commentReference w:id="0"/>
</w:r>
</w:p>
</w:sdtContent>
</w:sdt>
<w:sectPr w:rsidR="00345251" w:rsidSect="006637A9">
<w:pgSz w:w="12240" w:h="15840"/>
<w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440"
w:header="720" w:footer="720" w:gutter="0"/>
<w:cols w:space="720"/>
<w:docGrid w:linePitch="360"/>
</w:sectPr>
</w:body>
</w:document>
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top