We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Remove placeholders and replace with their content


We’ve been using Aspose Words for .NET 9 in the company since a while and are planning to upgrade to Aspose 19. However, there’s been a change of behaviour between these 2 versions with tag placeholders.

In Aspose 19, the tag placeholders are preserved when you save the document, while in Aspose 9 they were discarded (only the content of the placeholder was retained). See below:

<!-- Generated by Aspose.Words for .NET 19.4 -->
        <w:alias w:val="TEXT:TutorialName" />
        <w:tag w:val="[%TEXT:TutorialName%]" />
        <w:id w:val="-1467197556" />
            <w:docPart w:val="DefaultPlaceholder_-1854013440" />
        <w:text />
        <w:p w:rsidR="00622328" w:rsidRPr="00617BB7" w:rsidP="00617BB7" w14:paraId="75DB8E92" w14:textId="6CC855DE">
            <w:r><w:t>va01 - User Manual</w:t></w:r>


<!-- Generated by Aspose.Words for .NET -->
<w:p w:rsidR="00622328" w:rsidRPr="00585CEE" w:rsidP="00585CEE">
    <w:r><w:t>va01 - User Manual</w:t></w:r>

How can we achieve the same result with Aspose 19?


Could you please ZIP and attach your input, output and expected output documents here for our reference? We will then provide you more information about your query.