GroupDocsGists
10/24/2017 - 1:31 PM

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

// For complete examples and data files, please go to https://github.com/groupdocsassembly/GroupDocs_Assembly_NET
//setting up source 
const String strDocumentTemplate = "Presentation Templates/In-Paragraph List_OpenDocument.odp";
//Setting up destination 
const String strDocumentReport = "Presentation Reports/In-Paragraph List_OpenDocument_Json Report.odp";
try
{
    //Instantiate DocumentAssembler class
    DocumentAssembler assembler = new DocumentAssembler();//initialize object of DocumentAssembler class 
    //Call AssembleDocument to generate In-Paragraph List report in open presentation format
    assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate), CommonUtilities.SetDestinationDocument(strDocumentReport), DataLayer.GetProductsDataJson(), "products");
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
}