Bulleted List in Text Document

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

Bulleted List in Text Document

Creating a Bulleted List

Practicing the following steps you can insert Bulleted List in a Text document.

  1. To add a bulleted list use • as a bullet for each element in the list.
  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 Text Document format.

Adding Syntax to be evaluated by GroupDocs.Assembly Engine

We provide support for the following products:
<<foreach [in products]>>•	<<[ProductName]>>
<</foreach>>
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.txt", "bulleted-list-report.txt", DataSourceInfo(products, "product"))

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

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

We provide support for the following products:
�	Harbor Blend whole bean coffee
�	Lighthouse Espresso beans
�	Aged harbour cheddar
�	Chestnut honey
�	Oat and honey biscuits
�	Cold-pressed olive oil
�	Smoked sea salt
�	Smoked gouda
�	Autumn Harvest apple butter
[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.