Bulleted List in Text Document
Leave feedback
NoteIn this article, we will use GroupDocs.Assembly to generate a Bulleted List report in Text Document format.
NoteThe example reads the shop data described in The Business Layer.
Practicing the following steps you can insert Bulleted List in a Text document.
- To add a bulleted list use • as a bullet for each element in the list.
- Save your Document.
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.
We provide support for the following products:
<<foreach [in products]>>• <<[ProductName]>>
<</foreach>>
TipFor detailed technical information about syntax, expressions and report generation by the engine, please visit: Working with GroupDocs.Assembly Engine.
Please download the sample Bulleted List document we created in this article:
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]
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.