Alternating Row Colors
Using MailMerge, you can design your table including the style for alternating rows in the template editor.
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.
This demo uses the MailMerge class and the MVC version of TXTextControl.Web.DocumentViewer included TX Text Control .NET Server for ASP.NET.
© 2020 Copyright Text Control GmbH. All rights reserved.