In several applications, it is required to render or to remove a complete text block in a template based on specific conditions.
This demo uses the MVC version of TXTextControl.Web.MVC.DocumentViewer included in TX Text Control .NET Server for ASP.NET. The functionality is compatible across all supported platforms.
Version 30 (30.0.404.500)
The RemoveEmptyBlocks property of the MailMerge class is set to true. In case, the data for the merge block conditional is empty, the complete merge block gets removed, if RemoveEmptyBlocks is set to true.
Sample Source Code
© 2022 Copyright Text Control GmbH and Text Control, LLC. All rights reserved. We ♥ documents.