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 30 (30.0.404.500)
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
© 2022 Copyright Text Control GmbH and Text Control, LLC. All rights reserved. We ♥ documents.