Single Row Image in HTML Document

Note
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

Note
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,&lt;&lt;[customer.Photo]&gt;&gt;"/>
</td>
<td>
<table>
<tr>
<td>
<b>Name:</b>
</td>
<td>
<b>&lt;&lt;[customer.CustomerName]&gt;&gt;</b>  
</td>
</tr>
<tr>
<td>
<b>Contact Number:</b>
</td>
<td>
&lt;&lt;[customer.CustomerContactNumber]&gt;&gt;
</td>
</tr>
</table>
Tip
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

Note
The code uses some of the objects defined in The Business Layer.