Multicolored Numbered List in HTML Document

Note
In this article, we will use GroupDocs.Assembly to generate a Multicolored Numbered List report in HTML Document format.

Multicolored Numbered List in HTML Document

Reporting Requirement

As a report developer, you are required to represent the following key requirements:

  • Report must show the clients in numbered list.
  • It must highlight the products.
  • Report must be generated in the HTML Document.

Adding Syntax to be evaluated by GroupDocs.Assembly Engine

We provide support for the following clients:
<ol>
&lt;&lt;foreach [in getClients()]&gt;&gt;
<li &lt;&lt;if [indexOf() % 2 == 0]&gt;&gt;style="background-color:#FFF8DC"&lt;&lt;/if&gt;&gt;>&lt;&lt;[getName()]&gt;&gt;</li>
&lt;&lt;/foreach&gt;&gt;
</ol>

Download Multicolored Numbered List Template

Please download the sample template we created in this article:

Generating The Report

Note
The code uses some of the objects defined in: The Business Layer