Is there any RTF like editor which we can use to create a RTF file with Mail merge field which we can use to create a template that can be used to generare DOCX or PDF files?
Eric
PS The Editor is missing in the list of Tags
1 Answer, 1 is accepted
0
Hristian Stefanov
Telerik team
answered on 30 May 2022, 08:38 AM
Hi Eric,
The desired result seems possible currently with our Editor.
The idea is to use a combination between the Editor and the RadFlowDocument from the WordsProcessing.
The Editor allows you to convert and export its HTML into plain text, pdf, etc. We have a knowledge base article that shows the Editor exporting its HTML: Convert Editor Value to Plain Text. Use the example from the knowledge base article and replace the plain text exportation with PDF/DOCX. The exportation happens through the RadFlowDocument. Here is an example of RadFlowDocument exporting to PDF and DOCX:
Lastly, here is the article for Mail Merge functionality that WordsProcessing also provides: Mail Merge.
I hope this helps. If further concerns appear, I would be glad to help.
Regards,
Hristian Stefanov
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/.
What if I let the user crate a Word document with merge fields off line, he or she uploads the document and I would only like to mail merge it with a dataset.
is this possible?
Eric
Dimitar
Telerik team
commented on 02 Jun 2022, 06:05 AM
Hi Eric,
Yes, this is possible, after the document is uploaded you will need to perform 3 steps:
Import the document with the DocxFormatProviderwhich will return a RadFlowDocument instance.