I want to try replace placeholder using contentcontrol.
I was able to add contentcontrol by
click on the Developer tab, and identify the Controls group.
Click Design Mode.
Click the Aa button to insert a content control.
- Code: Select all
<w:p>
<w:r>
<w:t xml:space="preserve">Mytext </w:t>
</w:r>
<w:sdt>
<w:sdtPr>
<w:alias w:val="Data value:placeHolder"/>
<w:tag w:val="Data value:placeHolder"/>
<w:id w:val="-888214560"/>
<w:placeholder>
<w:docPart w:val="DefaultPlaceholder_22675703"/>
</w:placeholder>
<w:text/>
</w:sdtPr>
<w:sdtContent>
<w:r>
<w:t>placeholder</w:t>
</w:r>
</w:sdtContent>
</w:sdt>
</w:p>
I saw the example ContentControlsXmlEdit
WordprocessingMLPackage ...