Bulleted List in HTML Document

Note
In this article, we will use GroupDocs.Assembly to generate a Bulleted List report in HTML Document format.
Note
The example reads the shop data described in The Business Layer.

Bulleted List in HTML Document

Creating a Bulleted List

Practising the following steps you can insert Bulleted List in an HTML document.

  1. To add a bulleted list start and end your list with <ul></ul> tag and list all the elements by enclosing them between <li></li> tag.
  2. Save your Document.

Reporting Requirement

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

  • A report must show all the products in a bulleted list format.
  • A report must be generated in the HTML Document.

Adding Syntax to be evaluated by GroupDocs.Assembly Engine

We provide support for the following products:
<ul>
&lt;&lt;foreach [in products]&gt;&gt;
<li>&lt;&lt;[ProductName]&gt;&gt;</li>
&lt;&lt;/foreach&gt;&gt;
</ul>
Tip
For detailed technical information about syntax, expressions and report generation by the engine, please visit: Working with GroupDocs.Assembly Engine.

Download Bulleted List Template

Please download the sample Bulleted List document we created in this article:

Generating The Report

import json

from groupdocs.assembly import DataSourceInfo, DocumentAssembler

with open("products.json", encoding="utf-8") as f:
    products = json.load(f)

assembler = DocumentAssembler()
assembler.assemble_document("bulleted-list.html", "bulleted-list-report.html", DataSourceInfo(products, "product"))

The following sample file is used in this example: bulleted-list.html

The following sample file is used in this example: products.json

<html>
<body>
We provide support for the following products:
<ul>

<li>Harbor Blend whole bean coffee</li>

<li>Lighthouse Espresso beans</li>

<li>Aged harbour cheddar</li>
[TRUNCATED]

Download full output

Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.