5 Answers, 1 is accepted
Hello,
The described behavior can be achieved by using Telerik Document Processing in MVC and Core scenarios on the server side in a similar way as it is shown in this demo - https://demos.telerik.com/aspnet-mvc/wordsprocessing/mail-merge. On the server we can filter the content of the word document according to our needs
If your scenario is somehow different please elaborate it so we could be more helpful.
Regards,
Plamen
Progress Telerik
Thanks for the reply. Looking at the example you seem to be defining the template document in code (Mail_MergeController.cs) but is it possible to upload the template as a word doc, then perform the mail merge on that uploaded template, using predefined merge tags or areas?
Is something like the replace component better suited for this?
Thank you.
Hi Craig,
You can load the file from the server through the Import() method of the format provider:
Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider provider = new Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider();
using (Stream input = File.OpenRead(pathToFile))
{
RadFlowDocument document = provider.Import(input);
}
The conditional statements and nested merge fields, however, are currently not supported in WordsProcessing. We have logged requests about these functionalities and you can vote for their implementation using the related public items:
You can also subscribe to the items using the Follow button so you can get notifications of status updates on them.
Hope this information is useful.
Regards,
Tanya
Progress Telerik