GroupDocsGists
10/24/2017 - 1:39 PM

GenerateMulticoloredNumberedListinOpenDocumentProcessingFormatt.cs

// For complete examples and data files, please go to https://github.com/groupdocsassembly/GroupDocs_Assembly_NET
//Setting up source open document template
const String strDocumentTemplate = "Word Templates/Multicolored Numbered List_OpenDocument.odt";
//Setting up destination open document report 
const String strDocumentReport = "Word Reports/Multicolored Numbered List Report.odt";
try
{
    //Instantiate DocumentAssembler class
    DocumentAssembler assembler = new DocumentAssembler();
    //Call AssembleDocument to generate Multicolored Numbered List Report in open document format
    assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate), CommonUtilities.SetDestinationDocument(strDocumentReport), DataLayer.GetProductsData(), "products");
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
}