// For complete examples and data files, please go to https://github.com/groupdocsassembly/GroupDocs_Assembly_NET
//Setting up source 
string strDocumentTemplate = "Word Templates/Working With Table Row Data Bands.docx";
//Setting up destination
string strDocumentReport = "Word Reports/Working With Table Row Data Bands.docx";
try
{
    // Assemble a document using the external document table as a data source.
    DocumentAssembler assembler = new DocumentAssembler();
    assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate), 
                               CommonUtilities.SetDestinationDocument(strDocumentReport), 
                               new DataSourceInfo(DataLayer.ExcelData(), "ds"));

}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
}