Single Row Image in Word Processing Document

Note
In this article, we will use GroupDocs.Assembly to generate a Single Row Image report in Word Processing Document format.
Note
The code uses some of the objects defined in The Business Layer.

Single Row Image in Microsoft Word Document

Creating a Single Row Image

Please follow below steps to create a Single Row Image in MS Word 2013:

  1. Insert the desired shape to display image in it.
  2. Go to Insert Tab and select shape by clicking on Shape Icon.
  3. Write “Name” and “Age” to show name and age info of the customer.
  4. Save the template.

Reporting Requirement

As a report developer, you are required to represent information of first single manager with the following key requirements:

  • Report must show image of the manager
  • It must show Name and age of manager
  • Report must be generated in the Word Processing Document.

Adding Syntax to be evaluated by GroupDocs.Assembly Engine

<<image [manager.getPhoto()]>>

Name:

<<[manager.getName()]>>

Age:

<<[manager.getAge()]>>

### Download Single Row Template

Please download the sample Single Row document we created in this article:

Generating The Report

ODT Template and Report in Apache OpenOffice

In order to check compatibility of ODT between Microsoft Office 2010 and Apache OpenOffice 4.1.2, we performed below tests:

  • We opened the ODT template created through Microsoft Office 2010 in Apache OpenOffice 4.1.2. The template opened successfully in Apache OpenOffice without any issues or formatting losses.
  • We opened the ODT report generated through GroupDocs.Assembly in Apache OpenOffice 4.1.2. The report opened successfully in Apache OpenOffice without any issues or formatting losses.