Mail merge in ASP .net core 5

1 Answer 609 Views
Editor
Saloni
Top achievements
Rank 1
Saloni asked on 14 Sep 2021, 12:24 PM
Hello Team,

We want to purchase Telerik UI for the asp.net core 5 controls license before purchase it, we want to make sure asp.net 5 core Telerik controls support mail merge functionality in the .net 5 projects as per our expectation.

We want to implement Mail Merge functionality in our asp.net core 5 projects. We have checked the WPF mail merge demo and it is suited for our .net 5 project. We want the same mail merge function buttons in the .net 5 UI which are available in the WPF Mail Merge demo. For e.g. Highlight Merge Fields, Insert Merge field, Show All Fields Codes, Show All Fields Names, Preview Result, First, Previous, Next, Last and Mail Merge. Please find the attached image which we want in our asp.net 5 core project.

Can you please provide us a sample demo in .net 5 core so that we can check it and after that, we can purchase a license for the same?

We want to Preview the result before Mail Merge. We also want to edit the Mail Merge Template and Save it. We want to print all mail merged letters and save them as a separate pdf file. For e.g. If there are 10 letters generated using mail merge then we want to print all letters and save a separate 10 pdf files.

Let us know your thoughts on what we can achieve in .Net core Mail Merge as compared to WPF Mail Merge Demo.

1 Answer, 1 is accepted

Sort by
0
Stoyan
Telerik team
answered on 17 Sep 2021, 11:53 AM

Hi Saloni,

The MailMerge functionality is provided by our Document Processing Library. Please review the following ASP.NET MVC Demo of the MailMerge.

The MailMerge can be achieved in the same way with the Telerik UI for ASP.NET Core suite.

Please let me know if further assistance is required.

 

Regards,
Stoyan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Saloni
Top achievements
Rank 1
commented on 20 Sep 2021, 07:04 AM

Hi Stoyan,

Thank you for the advice but we have few concerns as below:

We have checked the "ASP.NET MVC Demo of the MailMerge" but in that demo, the Template is creating from the code side and inserting Mail Merge Insert Field at fixed place but we want to create and update Template content from the UI side and also want to select Mail Merge Insert Fields from the drop-down to add in the Template from the UI dynamically. So that End User can create their own custom template and change it any time from the UI and put the Insert Mail Merge Fields at any place in the Template before Mail Merge. We also want to preview the Mail Merge Letters and page through a preview by navigation buttons so that users can view the letters before Mail Merge and after that Print & Save it.

We have not found to update Template and Insert Mail Merge Fields from the UI in the demo. Can you please provide us sample code or any document which provides us guidance to update Mail Merge Template content from the UI and put Mail Merge Insert Fields at any place in the Template from the UI for ASP .net core 5?

Regards,
Saloni

Stoyan
Telerik team
commented on 20 Sep 2021, 04:20 PM

Your requirements of MailMerge with Editable Merge Fields and Preview can be achieved in Telerik for UI ASP.NET Core by Customizing our Editor Component.

Please review the Editor's Import and Export Demo. The Document Processing Library parses the Html content of the Editor to Xml (which is used to format .docx files) and vice-versa.

Because the documents that are going to be edited by this custom functionality will all have to be formatted as Html for the Editor, they won't be able to import and export .docx files that contain MailMerge Fields out-of-the-box. The reason for this is that MailMerge Fields in WPF Forms are marked by a specific XML tag which is lost when the content is formatted as Html.

Could you please let me know whether your scenario requires Telerik UI MailMerge Templates to be compatible with one another? This will allow me to create a sample project that showcases the behavior.

Finally you can submit a Feature Request in our Feedback Portal, if you'd like to see the Editor being able to import and export MailMerge Fields out-of-the-box.

Saloni
Top achievements
Rank 1
commented on 22 Sep 2021, 10:03 AM

Hello,

Thank you for your quick reply and we appreciate it

We want to import the Mail Merge Template (with Mail Merge Insert Fields) DOCX file in the editor. We should be able to preview all the letters (page by page) and if everything is fine in the letters, we want to print all letters and save each letter in a separate pdf file. We should be able to edit content in the Template and should be able to insert Mail Merge Insert Fields in the Template and last we want to save as updated Templated in the DOCX file.

How can we achieve the above functionality using Editor Component and Document Processing Library?
Additionally is there any way, we can use the same DOCX Template in the Asp.net core and WPF project to use Telerik Mail Merge Functionality and generate letters?

If we are not able to generate a Mail Merge Template DOCX file, how can we achieve the above custom functionality using HTML Editor? Can you please provide us sample demo code to generate a mail merge letter as per the below list:

1) Create and save new templates
2) Add Mail Merge Insert fields to the template from a drop-down list in the UI
3) Import Created Template to generate letter and page through a preview
4) Print and save copies of the letters (save as pdf file)

Regards,
Saloni

Stoyan
Telerik team
commented on 24 Sep 2021, 02:32 PM

Hello Saloni, 

Thank you for the provided clarifications. 

I will escalate the details about the Custom use-case to our DevTeam to determine whether achieving this configuration is feasible. I will keep you posted for our findings.

Thank you for your patience and understanding in advance.
Stoyan
Telerik team
commented on 30 Sep 2021, 02:20 PM

Hello Saloni,

Please examine this sample Dojo that showcases a proof of concept of the custom Editor MailMerge. If you approve the behavior of the Demo, next I will prepare a sample project that uses Telerik UI for ASP.NET Core and is able to export the content of the Editor to a Word document.

Looking forward to your reply.
Md Kamrus
Top achievements
Rank 1
commented on 22 Sep 2023, 08:40 AM

Hello Stoyan,

Can you please prepare and share a sample project that uses Telerik UI for ASP.NET Core and is able to export the content of the Editor to a Word document regarding the above behaviours?

Stoyan
Telerik team
commented on 27 Sep 2023, 08:35 AM

Hi Md Kamrus,

I have implemented the behavior seen in the sample Dojo in the attached sample project.

There the back-end of the server also enables you to export to content of the Editor to a Word document.

I hope you find the project useful.

Regards,

Stoyan

Tags
Editor
Asked by
Saloni
Top achievements
Rank 1
Answers by
Stoyan
Telerik team
Share this question
or