GroupDocsGists
10/24/2017 - 1:34 PM

Examples-CSharp-Report-GenerateReport-GenerateBulletedListFromJsoninWord.cs

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