# In-Table List with Highlighted Rows in HTML Document In-Table List with Highlighted Rows in HTML Document with GroupDocs.Assembly for Python via .NET: the template, the Python data and the code. {{< alert style="info" >}}In this article, we will use GroupDocs.Assembly to generate In-Table List with Highlighted Rows in HTML Document format.{{< /alert >}}{{< alert style="info" >}}The example reads the shop data described in [The Business Layer]({{< ref "assembly/python-net/developer-guide/basic-usage/working-with-a-business-case/the-business-layer.md" >}}).{{< /alert >}} ## In-Table List with Highlighted Rows in HTML Document ### Reporting Requirement As a report developer, you are required to represent customers' orders information with a specific filtering condition with the following key requirements: * The report must show each customer along with his orders. * Show single Customer and his single order price in a single row. * It must highlight the record with order price more than or equal to 400. * It must show sum of the order prices. * It must represent all the information in tabular form. * The report must be generated in the Word Processing Document. ### Adding Syntax to be evaluated by GroupDocs.Assembly Engine

Customer

Order Price

<<foreach [in orders]>><<if [Price >= 400]>><<[Customer.CustomerName]>>

<<[Price]>>

<<else>><<[Customer.CustomerName]>>

<<[Price]>><</if>><</foreach>>

Total:

<<[Sum(c => c.Price)]>>

{{< alert style="success" >}}For detailed technical information about syntax, expressions and report generation by the engine, please visit: [Working with GroupDocs.Assembly Engine]({{< ref "assembly/python-net/developer-guide/basic-usage/working-with-groupdocs.assembly-engine/_index.md" >}}).{{< /alert >}} ### In-Table List with Highlighted Rows Template Please download the In-Table list with highlighted rows template document we created in this article: * [in-table-list-with-highlighted-rows.html](https://docs.groupdocs.com/assembly/python-net/_sample_files/developer-guide/advanced-usage/working-with-table-reports-highlighted-rows/in-table-list-with-highlighted-rows-in-html-document/in-table-list-with-highlighted-rows.html) ### Generating The Report {{< tabs "example1" >}} {{< tab "Python" >}} ```python import json from groupdocs.assembly import DataSourceInfo, DocumentAssembler with open("orders.json", encoding="utf-8") as f: orders = json.load(f) assembler = DocumentAssembler() assembler.assemble_document("in-table-list-with-highlighted-rows.html", "in-table-list-with-highlighted-rows-report.html", DataSourceInfo(orders, "orders")) ``` {{< /tab >}} {{< tab "in-table-list-with-highlighted-rows.html" >}} {{< tab-text >}} The following sample file is used in this example: [in-table-list-with-highlighted-rows.html](https://docs.groupdocs.com/assembly/python-net/_sample_files/developer-guide/advanced-usage/working-with-table-reports-highlighted-rows/in-table-list-with-highlighted-rows-in-html-document/in-table-list-with-highlighted-rows.html) {{< /tab-text >}} {{< /tab >}} {{< tab "orders.json" >}} {{< tab-text >}} The following sample file is used in this example: [orders.json](https://docs.groupdocs.com/assembly/python-net/_sample_files/developer-guide/advanced-usage/working-with-table-reports-highlighted-rows/in-table-list-with-highlighted-rows-in-html-document/orders.json) {{< /tab-text >}} {{< /tab >}} {{< tab "in-table-list-with-highlighted-rows-report.html" >}} ```text [TRUNCATED] ``` [Download full output](https://docs.groupdocs.com/assembly/python-net/_output_files/developer-guide/advanced-usage/working-with-table-reports-highlighted-rows/in-table-list-with-highlighted-rows-in-html-document/generating_the_report/in-table-list-with-highlighted-rows-report.html) {{< /tab >}} {{< /tabs >}}
Customer Order Price