Aspose::Words::Document::UnlinkFields method

Document::UnlinkFields method

Unlinks fields in the whole document.

void Aspose::Words::Document::UnlinkFields()

Remarks

Replaces all the fields in the whole document with their most recent results.

To unlink fields in a specific part of the document use UnlinkFields.

Examples

Shows how to unlink all fields in the document.

auto doc = MakeObject<Document>(MyDir + u"Linked fields.docx");

doc->UnlinkFields();

See Also