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.
Note
The code uses some of the objects defined in The Business Layer.
Note
This feature is supported by version 17.03 or greater.

Multicolored Numbered List in HTML Document

Reporting Requirement

As a report developer, you are required to describe the services you are providing with the following key requirements:

  • The report must show the products in the numbered list.
  • It must highlight the products.
  • The report must be generated in the Word Processing Document.

Adding Syntax to be evaluated by GroupDocs.Assembly Engine

We provide support for the following products:

<ol>

&lt;&lt;foreach [in products]&gt;&gt;
<li &lt;&lt;if [IndexOf() % 2 == 0]&gt;&gt;style="background-color:#FFF8DC"&lt;&lt;/if&gt;&gt;>&lt;&lt;[ProductName]&gt;&gt;</li>
&lt;&lt;/foreach&gt;&gt;
</ol>
Tip
For detailed technical information about syntax, expressions and report generation by the engine, please visit: Working with GroupDocs.Assembly Engine

Download Multicolored Numbered List Template

Please download the multicolored numbered list template document we created in this article:

Generating The Report