Common List Image in HTML Document
Leave feedback
NoteIn this article, we will use GroupDocs.Assembly to generate a Common List report in HTML Document format.
NoteThe example reads the shop data described in The Business Layer.
As a report developer, you are required to share the following key requirements:
- A report must show multiple customers’ picture and name.
- A report must be generated in the HTML Document format.

Please download the sample Common List document we created in this article:
import json
from groupdocs.assembly import DataSourceInfo, DocumentAssembler
with open("customers.json", encoding="utf-8") as f:
customers = json.load(f)
assembler = DocumentAssembler()
assembler.assemble_document("common-list.html", "common-list-report.html", DataSourceInfo(customers, "customers"))
The following sample file is used in this example: common-list.html
The following sample file is used in this example: customers.json
The following sample files are used in this example: quayside-bistro.png, lantern-street-cafe.png, saltmarsh-deli.png, pier-nine-kitchen.png
<html>
<body>
<img height="100" width="100" src="data:image/jpeg;base64,quayside-bistro.png"/>
<h2>Quayside Bistro</h2>
<img height="100" width="100" src="data:image/jpeg;base64,lantern-street-cafe.png"/>
<h2>Lantern Street Café</h2>
<img height="100" width="100" src="data:image/jpeg;base64,saltmarsh-deli.png"/>
[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.