GroupDocsGists
10/24/2017 - 1:46 PM

GenerateCommonMasterDetailFromDataSetinPresentationFormat.cs

// For complete examples and data files, please go to https://github.com/groupdocsassembly/GroupDocs_Assembly_NET
//Setting up source spreadsheet template
const String strPresentationTemplate = "Presentation Templates/Common Master-Detail_DB.pptx";
//Setting up destination document report 
const String strPresentationReport = "Presentation Reports/Common Master-Detail_DT Report.pptx";
try
{
    //Instantiate DocumentAssembler class
    DocumentAssembler assembler = new DocumentAssembler();
    //Call AssembleDocument to generate Common List Report in presentation format
    assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strPresentationTemplate), CommonUtilities.SetDestinationDocument(strPresentationReport), DataLayer.GetCustomersAndOrdersDataDT());
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
}