GroupDocsGists
10/24/2017 - 1:39 PM

Examples-CSharp-GroupDocs.AssemblyExamples-GenerateReport-GenerateInTableMasterDetailFromDataSetinOpenPresentationFormat.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 strPresentationTemplate = "Presentation Templates/In-Table Master-Detail_DT_OpenDocument.odp";
//Setting up destination open presentation report 
const String strPresentationReport = "Presentation Reports/In-Table Master-Detail_DT Report.odp";
try
{
    //Instantiate DocumentAssembler class
    DocumentAssembler assembler = new DocumentAssembler();
    //Call AssembleDocument to generate In-Table Master-Detail Report in open presentation format
    assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strPresentationTemplate), CommonUtilities.SetDestinationDocument(strPresentationReport), DataLayer.GetCustomersAndOrdersDataDT(), "ds");
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
}