# Generating Report using Multiple Data Sources in Word Processing Document
{{< alert style="info" >}}In this article, we will use GroupDocs.Assembly to generate a report. This report will fetch data from multiple data sources.{{< /alert >}}{{< alert style="info" >}}The code uses some of the objects defined in [The Business Layer](https://docs.groupdocs.com/assembly/java/the-business-layer/).{{< /alert >}}
## Generating Report in Microsoft Word Document
### Creating a Template
1. Add a bullet list at the place where you want it to display clients' names.
2. Insert a table with two columns, that will show managers' and their contact prices.
3. Save your Document
### Reporting Requirement
As a report developer, you are required to generate a report that fetches data from two different data sources (e:g custom object, excel data table). Report must show following information:
* Bulleted list of clients
* A table showing managers' along with their contract prices and sum of contract prices
### Adding Syntax to be evaluated by GroupDocs.Assembly Engine
We provide support for the following clients:
```
- <><<[getName()]>>
<>
```
**Total Contract Prices by Managers**
| **Manager** | **Total Contract Price** |
| ------------------------------------------------------------ | ------------------------------------------------------------ |
| **< **.groupBy(c => c.Manager)**
**.orderBy(g => g.key)]>>**
**<<[group.key]>>** | <<[group.sum(
c => c.Contract_Price)]>>
<> |
### Download Template
Get template from here:
* [Multiple DS.docx](https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java/blob/master/Examples/GroupDocs.Assembly.Examples.Java/Data/Storage/Word%20Templates/Multiple%20DS.docx?raw=true)
### Generating the ReportGenerating Report using Excel Data Source and Custom Objects
{{< gist GroupDocsGists b9d4a5a09feb9868d1da9e07f3496f00 >}}