GroupDocsGists
10/24/2017 - 1:39 PM

Examples-CSharp-GroupDocs.AssemblyExamples-GenerateReport-GenerateInTableMasterDetailinOpenSpreadsheetFormat.cs

// For complete examples and data files, please go to https://github.com/groupdocsassembly/GroupDocs_Assembly_NET
//Setting up source open spreadsheet template
const String strSpreadsheetTemplate = "Spreadsheet Templates/In-Table Master-Detail_OpenDocument.ods";
//Setting up destination open spreadsheet report 
const String strSpreadsheetReport = "Spreadsheet Reports/In-Table Master-Detail Report.ods";
try
{
    //Instantiate DocumentAssembler class
    DocumentAssembler assembler = new DocumentAssembler();
    //Call AssembleDocument to generate In-Table Master-Detail Report in open spreadsheet format
    assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strSpreadsheetTemplate), CommonUtilities.SetDestinationDocument(strSpreadsheetReport), DataLayer.PopulateData(), "customers");
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
}