Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Purpose Summary. What is this page about?
This page demonstrates how to programmatically remove fields from a Word document using Aspose.Words for Python via .NET, including a code example that utilizes the Field.remove method.
Sometimes it is necessary to remove a field from the document. This may occur when it is to be replaced with a different field type or when the field is no longer needed in the document. For example a TOC field when saving to HTML.
To remove a field inserted into a document using DocumentBuilder.insert_field, use the returned Field object, which provides the convenient remove method to easily remove the field from the document.
The following code example shows how to remove a field from the document:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.