You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/remove-mergefields-retain-values-radwordsprocessing.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: How to Remove a MERGEFIELD While Replacing the Placeholders with Values in RadWordsProcessing
3
3
description: Learn how to remove a MERGEFIELD from a document while replacing the placeholders with actual values, facilitating the MailMerge process in RadWordsProcessing.
4
4
type: how-to
5
-
page_title: How to Remove a MERGEFIELD WWhile Replacing the Placeholders with Values in RadWordsProcessing
5
+
page_title: How to Remove a MERGEFIELD While Replacing the Placeholders with Values in RadWordsProcessing
When preparing a document for the [MailMerge]({%slug radwordsprocessing-editing-mail-merge%}) operation in RadWordsProcessing, it might be necessary to remove a [MERGEFIELD]({%slug radwordsprocessing-concepts-merge-field%}) without losing its inserted value. This process ensures that the document is clean and ready for MailMerge without encountering issues related to leftover `MERGEFIELD`.
19
+
When preparing a document for the [MailMerge]({%slug radwordsprocessing-editing-mail-merge%}) operation in RadWordsProcessing, it might be necessary to remove a [MERGEFIELD]({%slug radwordsprocessing-concepts-merge-field%}) without losing its inserted value. This process ensures that the document is clean and ready for MailMerge without encountering issues related to leftover `MERGEFIELD`.
20
20
21
21
This KB article also answers the following questions:
22
22
- How can I delete `MERGEFIELD` fields but keep their content in the document?
23
23
- What is the correct approach to prepare a document for MailMerge in RadWordsProcessing?
24
24
- Is there a way to clean up `MERGEFIELD` from a document without affecting its content?
25
25
26
26
## Solution
27
-
To remove a `MERGEFIELD` while retaining their values, you can use the `RadFlowDocumentEditor`'s `DeleteContent` method. This approach involves deleting the field codes but leaving the field values as plain text in the document. Additionally, the [Find and Replace]({%slug radwordsprocessing-editing-find-and-replace%}) functionality provides a straightforward way to handle any leftover text from the fields.
27
+
To remove a `MERGEFIELD` while retaining its values, you can use the `RadFlowDocumentEditor`'s `DeleteContent` method. This approach involves deleting the field codes but leaving the field values as plain text in the document. Additionally, the [Find and Replace]({%slug radwordsprocessing-editing-find-and-replace%}) functionality provides a straightforward way to handle any leftover text from the fields.
28
28
29
29
Here is an example code snippet demonstrating how to accomplish this:
0 commit comments