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 32.0 SP4 (NuGet Version 32.4.0)

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.

Next Sample

© 2024 Copyright Text Control GmbH and Text Control, LLC. All rights reserved. We documents.