# Working with Multiple Data Sources ## Explicit Support for Multiple Data Sources Using **DocumentAssembler.assembleDocument** overload user can reference multiple data source objects and their members in the template. Names of all the data sources must be specified and unique. ## Parameters ### DataSources An array of data source objects like **object[] dataSources**. ### DataSourceNames An array of names to reference the data source objects within the template like **string\[\] dataSourceNames**. ###### Articles in this section ## Contents - [Generating Report using Multiple Data Sources in Word Processing Document](https://docs.groupdocs.com/assembly/java/generating-report-using-multiple-data-sources-in-word-processing-document.md) - [Generating Report using Multiple Data Sources in Spreadsheet Document](https://docs.groupdocs.com/assembly/java/generating-report-using-multiple-data-sources-in-spreadsheet-document.md) - [Generating Report using Multiple Data Sources in Presentation Document](https://docs.groupdocs.com/assembly/java/generating-report-using-multiple-data-sources-in-presentation-document.md)