// For complete examples and data files, please go to https://github.com/groupdocsassembly/GroupDocs_Assembly_NET
//setting up source
const String strDocumentTemplate = "Spreadsheet Templates/Single Row.xlsx";
//Setting up destination
const String strDocumentReport = "Spreadsheet Reports/Single Row_Json Report.xlsx";
try
{
//Instantiate DocumentAssembler class
DocumentAssembler assembler = new DocumentAssembler();//initialize object of DocumentAssembler class
//Call AssembleDocument to generate Single Row report in spreadsheet format
assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate), CommonUtilities.SetDestinationDocument(strDocumentReport), DataLayer.GetSingleCustomerDataJson(), "customer");
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}