Alternating Row Colors
Using MailMerge, you can design your table including the style for alternating rows in the template editor.
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 31.0 SP1 (31.1.1)
The merge block range includes two table rows that contain identical merge fields. The background color of the second table row is different. In fact, you could also have different merge fields in those rows. At the end of the first row, a NEXT field has been added which switches to the next data record in the middle of a page.
Sample Source Code
© 2023 Copyright Text Control GmbH and Text Control, LLC. All rights reserved. We ♥ documents.