Bug in content control inside table inside text box

Hi,

I have a word docx document with a text box. Inside the text box there is a table. Now, if I insert a content control inside a cell of a table and I save and close the document, when trying to open it again it fails.

Here i add the OpenXML correspondant to that text box:

<w:pict>
							<v:shapetype w14:anchorId="55C75FCC" id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe">
								<v:stroke joinstyle="miter"/>
								<v:path gradientshapeok="t" o:connecttype="rect"/>
							</v:shapetype>
							<v:shape id="Text Box 2" o:spid="_x0000_s1026" type="#_x0000_t202" style=";margin-left:259.15pt;margin-top:0;width:185.9pt;height:139.2pt;z-index:251659264;visibility:visible;v-text-anchor:top" o:gfxdata="UEsDBBQABgAIAAAAIQC2gziS/gAAAOEBAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbJSRQU7DMBBF&#xA;90jcwfIWJU67QAgl6YK0S0CoHGBkTxKLZGx5TGhvj5O2G0SRWNoz/78nu9wcxkFMGNg6quQqL6RA&#xA;0s5Y6ir5vt9lD1JwBDIwOMJKHpHlpr69KfdHjyxSmriSfYz+USnWPY7AufNIadK6MEJMx9ApD/oD&#xA;OlTrorhX2lFEilmcO2RdNtjC5xDF9pCuTyYBB5bi6bQ4syoJ3g9WQ0ymaiLzg5KdCXlKLjvcW893&#xA;SUOqXwnz5DrgnHtJTxOsQfEKIT7DmDSUCaxw7Rqn8787ZsmRM9e2VmPeBN4uqYvTtW7jvijg9N/y&#xA;JsXecLq0q+WD6m8AAAD//wMAUEsDBBQABgAIAAAAIQA4/SH/1gAAAJQBAAALAAAAX3JlbHMvLnJl&#xA;bHOkkMFqwzAMhu+DvYPRfXGawxijTi+j0GvpHsDYimMaW0Yy2fr2M4PBMnrbUb/Q94l/f/hMi1qR&#xA;JVI2sOt6UJgd+ZiDgffL8ekFlFSbvV0oo4EbChzGx4f9GRdb25HMsYhqlCwG5lrLq9biZkxWOiqY&#xA;22YiTra2kYMu1l1tQD30/bPm3wwYN0x18gb45AdQl1tp5j/sFB2T0FQ7R0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ZFWnSeDcDMBFuX9XaFy7a/0aS5VbASXUMgVgo2xz6UMtTVOhYnvDbF3&#xA;8INTkeXQSD2oK5e7Tk6T5FU61RIvWNWbpTX1qTo7hHBKV7Nvf9za3fpmq+Ou/WrXS8THh/HjHUQ0&#xA;Y/wLwy8+o0PJTHt/Jh1EhzBLs2eOIvAjtrN5koLYI0zfsheQZSH/Hyh/AAAA//8DAFBLAQItABQA&#xA;BgAIAAAAIQC2gziS/gAAAOEBAAATAAAAAAAAAAAAAAAAAAAAAABbQ29udGVudF9UeXBlc10ueG1s&#xA;UEsBAi0AFAAGAAgAAAAhADj9If/WAAAAlAEAAAsAAAAAAAAAAAAAAAAALwEAAF9yZWxzLy5yZWxz&#xA;UEsBAi0AFAAGAAgAAAAhAK5X+bskAgAARwQAAA4AAAAAAAAAAAAAAAAALgIAAGRycy9lMm9Eb2Mu&#xA;eG1sUEsBAi0AFAAGAAgAAAAhAFolP/neAAAACAEAAA8AAAAAAAAAAAAAAAAAfgQAAGRycy9kb3du&#xA;cmV2LnhtbFBLBQYAAAAABAAEAPMAAACJBQAAAAA=&#xA;">
								<v:textbox>
									<w:txbxContent>
										<w:p w:rsidR="00511D77" w:rsidRDefault="00511D77">
											<w:pPr>
												<w:rPr>
													<w:lang w:val="en-US"/>
												</w:rPr>
											</w:pPr>
											<w:proofErr w:type="spellStart"/>
											<w:r>
												<w:rPr>
													<w:lang w:val="en-US"/>
												</w:rPr>
												<w:t>My_integer</w:t>
											</w:r>
											<w:proofErr w:type="spellEnd"/>
											<w:r>
												<w:rPr>
													<w:lang w:val="en-US"/>
												</w:rPr>
												<w:t xml:space="preserve">: </w:t>
											</w:r>
											<w:sdt>
												<w:sdtPr>
													<w:rPr>
														<w:lang w:val="en-US"/>
													</w:rPr>
													<w:alias w:val="my_integer"/>
													<w:tag w:val="F2:my_integer"/>
													<w:id w:val="-1930726174"/>
													<w:placeholder>
														<w:docPart w:val="DefaultPlaceholder_1081868574"/>
													</w:placeholder>
												</w:sdtPr>
												<w:sdtContent>
													<w:r w:rsidRPr="00511D77">
														<w:rPr>
															<w:rStyle w:val="PlaceholderText"/>
															<w:color w:val="auto"/>
														</w:rPr>
														<w:t>[#]</w:t>
													</w:r>
												</w:sdtContent>
											</w:sdt>
										</w:p>
										<w:p w:rsidR="008F6FC2" w:rsidRDefault="008F6FC2">
											<w:pPr>
												<w:rPr>
													<w:lang w:val="en-US"/>
												</w:rPr>
											</w:pPr>
											<w:r>
												<w:rPr>
													<w:lang w:val="en-US"/>
												</w:rPr>
												<w:t xml:space="preserve">My-float: </w:t>
											</w:r>
										</w:p>
										<w:tbl>
											<w:tblPr>
												<w:tblStyle w:val="TableGrid"/>
												<w:tblW w:w="0" w:type="auto"/>
												<w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1"/>
											</w:tblPr>
											<w:tblGrid>
												<w:gridCol w:w="1645"/>
												<w:gridCol w:w="1641"/>
											</w:tblGrid>
											<w:tr w:rsidR="008F6FC2" w:rsidTr="008F6FC2">
												<w:tc>
													<w:tcPr>
														<w:tcW w:w="1650" w:type="dxa"/>
													</w:tcPr>
													<w:p w:rsidR="008F6FC2" w:rsidRDefault="008F6FC2">
														<w:pPr>
															<w:rPr>
																<w:lang w:val="en-US"/>
															</w:rPr>
														</w:pPr>
														<w:r>
															<w:rPr>
																<w:lang w:val="en-US"/>
															</w:rPr>
															<w:t>My float</w:t>
														</w:r>
													</w:p>
												</w:tc>
												<w:tc>
													<w:tcPr>
														<w:tcW w:w="1651" w:type="dxa"/>
													</w:tcPr>
													<w:p w:rsidR="008F6FC2" w:rsidRDefault="008F6FC2">
														<w:pPr>
															<w:rPr>
																<w:lang w:val="en-US"/>
															</w:rPr>
														</w:pPr>
													</w:p>
												</w:tc>
											</w:tr>
											<w:tr w:rsidR="008F6FC2" w:rsidTr="008F6FC2">
												<w:tc>
													<w:tcPr>
														<w:tcW w:w="1650" w:type="dxa"/>
													</w:tcPr>
													<w:p w:rsidR="008F6FC2" w:rsidRDefault="008F6FC2">
														<w:pPr>
															<w:rPr>
																<w:lang w:val="en-US"/>
															</w:rPr>
														</w:pPr>
														<w:proofErr w:type="spellStart"/>
														<w:r>
															<w:rPr>
																<w:lang w:val="en-US"/>
															</w:rPr>
															<w:t>My_date</w:t>
														</w:r>
														<w:proofErr w:type="spellEnd"/>
													</w:p>
												</w:tc>
												<w:tc>
													<w:tcPr>
														<w:tcW w:w="1651" w:type="dxa"/>
													</w:tcPr>
													<w:p w:rsidR="008F6FC2" w:rsidRDefault="008F6FC2">
														<w:pPr>
															<w:rPr>
																<w:lang w:val="en-US"/>
															</w:rPr>
														</w:pPr>
														<w:bookmarkStart w:id="1" w:name="_GoBack"/>
														<w:bookmarkEnd w:id="1"/>
													</w:p>
												</w:tc>
											</w:tr>
										</w:tbl>
										<w:p w:rsidR="008F6FC2" w:rsidRPr="00511D77" w:rsidRDefault="008F6FC2">
											<w:pPr>
												<w:rPr>
													<w:lang w:val="en-US"/>
												</w:rPr>
											</w:pPr>
										</w:p>
									</w:txbxContent>
								</v:textbox>
								<w10:wrap type="square"/>
							</v:shape>
						</w:pict>

This is the document BEFORE adding the content control. After adding it, if you see the difference:

	</w:tbl>
									</w:txbxContent>
						</w:pict>

The end tag of <v:shape> and <v:textbox> are gone. It looks to me like saving and closing the document has deleted them. While the document is open is ok, since the schema is loaded, but trying to open it again it fails.

Can anyone review this and confirm that is a bug?

Regards,

Javier Montoro

March 19th, 2015 11:12am

Hello,

Do you mind telling us which Word's version do you use? Based on my test with both of Word 2013 and word 2010, I can't reproduce this issue. Maybe this issue is caused by the particular file itself.

If you want to check this file with openxml, I recommend you post the question to Office open xml forum.

https://social.msdn.microsoft.com/Forums/en-US/home?forum=os_binaryfile

If you have any update, please feel free let us know.

Regards,

George Zhao
TechNet Community Support

Free Windows Admin Tool Kit Click here and download it now
March 20th, 2015 2:28am

I'm using 2010, but a collegue of mine has tried in 2013 and he finds the same problem.

If you want, I can send you the docx to some mail address.

Thanks for your answer :)

March 20th, 2015 3:55am

Hi,

You can send us a sample via Email (ibsofc@microsoft.com)

Regards,

George Zhao
TechNet Community Support

Free Windows Admin Tool Kit Click here and download it now
March 22nd, 2015 10:18pm

Hi Javier,

I have received the samples, but I still can't reproduce it in Document before.docx file. Would you please give me more detailed steps? For example, which content you inserted to content control?

I'll appreciate for it.

Regards,

George Zhao
TechNet Community Support

March 24th, 2015 4:52am

Hi George,

Thanks for your reply. I dont put anything in the CC, its an empty one. What I do is to place the cursor in the bottom-right cell of the table in the text box, add a rich text content control (the normal one), save and close. Thats it.

If you open the xml of the after one, youll see the difference, which is a <sdt> (the equivalent in openxml to a content control) inside the table.

Regards,

Javier Montoro

Free Windows Admin Tool Kit Click here and download it now
March 24th, 2015 11:14am

Hi,

I followed your steps and still can't repro this issue, I can open the file correctly after insert a rich text content control into table. Thus, I suppose that it's not a bug. I'm not farmaliar with Open XML schema, I recommend you post the question to Office open xml forum and get some lights.

https://social.msdn.microsoft.com/Forums/en-US/home?forum=os_binaryfile

Regards,

George Zhao
TechNet Community Support

March 24th, 2015 9:51pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics