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 32.0 SP1 (32.1.0)
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
© 2023 Copyright Text Control GmbH and Text Control, LLC. All rights reserved. We ♥ documents.