Skip to content

Commit 5ed6301

Browse files
authored
Update simulating-mail-merge-with-html-content.md
1 parent 62f70f6 commit 5ed6301

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

knowledge-base/simulating-mail-merge-with-html-content.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: Simulating Mail Merge with HTML content by Utilizing the Find and Replace Functionality
3-
description: Learn how to render HTML content with formatting options during mail merge using Telerik Document Processing Library.
2+
title: Simulating Mail Merge with formatted HTML content by Utilizing the Find and Replace Functionality
3+
description: Learn how to simulate Mail Merge with formatted HTML content using Telerik Document Processing Library.
44
type: how-to
5-
page_title: Simulating Mail Merge with HTML content by Utilizing the Find and Replace Functionality
6-
meta_title: Simulating Mail Merge with HTML content by Utilizing the Find and Replace Functionality
5+
page_title: Simulating Mail Merge with formatted HTML content by Utilizing the Find and Replace Functionality
6+
meta_title: Simulating Mail Merge with formatted HTML content by Utilizing the Find and Replace Functionality
77
slug: simulating-mail-merge-with-html-content
8-
tags: words, processing,telerik, document, mail, merge, html, content, find, replace
8+
tags: words, processing, telerik, document, mail, merge, html, content, find, replace
99
res_type: kb
1010
ticketid: 1694621
1111
---
@@ -18,18 +18,18 @@ ticketid: 1694621
1818

1919
## Description
2020

21-
This article demonstrates a sample approach how to simulate [mail merge]({%slug radwordsprocessing-editing-mail-merge%}), where HTML content needs to replace placeholders in a DOCX template. When performing mail merge, the WordProcessing library binds plain HTML text instead of rendering the HTML with formatting.
22-
23-
![Replace Placeholders with HTML content in DOCX template ><](images/simulating-mail-merge-with-html-content.png)
21+
This article demonstrates a sample approach how to simulate [mail merge]({%slug radwordsprocessing-editing-mail-merge%}), where formatted HTML content needs to replace placeholders in a DOCX template. When performing a mail merge, the WordProcessing library binds plain HTML text, instead of rendering the HTML with its original formatting.
2422

2523
## Solution
2624

27-
To render HTML content during mail merge, use the [Find-and-Replace]({%slug radwordsprocessing-editing-find-and-replace%}) functionality instead of the default mail merge engine. Replace placeholders with styled HTML content using the following steps:
25+
To work around this, use the [Find-and-Replace]({%slug radwordsprocessing-editing-find-and-replace%}) functionality instead. Replace placeholders with the styled HTML content using the following steps:
2826

2927
1. Import the HTML content using [HtmlFormatProvider]({%slug radwordsprocessing-formats-and-conversion-html-htmlformatprovider%}).
3028
2. Import the DOCX template using [DocxFormatProvider]({%slug radwordsprocessing-formats-and-conversion-docx-docxformatprovider%}).
3129
3. Find placeholders in the template and replace them with the imported HTML content.
3230

31+
![Replace Placeholders with HTML content in DOCX template ><](images/simulating-mail-merge-with-html-content.png)
32+
3333
### Code Example
3434

3535
```csharp

0 commit comments

Comments
 (0)