DS Server's DocumentProcessing class can process IncludeText fields that essentially render sub-templates into a main template.
The loaded main template contains a merge field and an IncludeText field that references a sub-template hosted on the server. The sub-template contains also a merge field that is merged based on the same data source. All IncludeText fields are evaluated first, before included merge fields are populated.
Click the button Merge using DocumentProcessing to start the server-side mail merge process.
This demo uses the ASP.NET Core client libraries of DS Server. The functionality is compatible across all supported platforms.
Sample Source Code
No code required.
© 2021 Copyright Text Control GmbH and Text Control, LLC. All rights reserved. We ♥ documents.