Single Row Image in HTML Document
In this article, we will use GroupDocs.Assembly to generate a Single Row Image report in HTML Document format.
Single Row Image in HTML Document
This feature is supported by version 17.03 or greater
Reporting Requirement
As a report developer, you are required to represent information of first single customer with the following key requirements:
- Report must show image of the customer
- It must show Name and Contact Number of the customer
- Report must be generated in the Presentation Document.
Adding Syntax to be evaluated by GroupDocs.Assembly Engine
<table>
<tr>
<td>
<img height="100" width="100" src="data:image/jpeg;base64,<<[customer.Photo]>>"/>
</td>
<td>
<table>
<tr>
<td>
<b>Name:</b>
</td>
<td>
<b><<[customer.CustomerName]>></b>
</td>
</tr>
<tr>
<td>
<b>Contact Number:</b>
</td>
<td>
<<[customer.CustomerContactNumber]>>
</td>
</tr>
</table>
For detailed technical information about syntax, expressions and report generation by the engine, please visit: Working with GroupDocs.Assembly Engine.
Download Single Row Image Template
Please download the single row image document we created in this article:
Generating The Report
The code uses some of the objects defined in The Business Layer.