Multicolored Numbered List in Email Document

Note
In this article, we will use GroupDocs.Assembly to generate a Multicolored Numbered List report in Email Document format.
Note
The example reads the shop data described in The Business Layer.

Multicolored Numbered List in Email Document

Creating a Multicolored Numbered List

Practising the following steps you can create Multicolored Numbered List Template in MS Outlook 2013.

  1. In your email, write a sentence like “We provide support for the following clients:”.
  2. Start numbered list.
  3. Go to the “Design” tab and select color to make it colored list.
  4. Save the template.

Reporting Requirement

As a report developer, you are required to represent the following key requirements:

  • The report must be in .eml or .msg format.
  • It must add email recipient, CSS and subject of the email.
  • The report must show the products in the numbered list.
  • It must highlight the products.
  • The report must be generated in the Presentation Document.

Adding Syntax to be evaluated by GroupDocs.Assembly Engine

We provide support for the following products:

  1. <<foreach [in getClients()]>><<if [indexOf() % 2 == 0]>> <<[numberOf()]>>. <<[ProductName]>>
  2. <<else>> <<[numberOf()]>>. <<[ProductName]>>

«/if»«/foreach»

Tip
For detailed technical information about syntax, expressions and report generation by the engine, please visit: Working with GroupDocs.Assembly Engine.

Download Multicolored Numbered List Template

Please download the sample Multicolored Numbered List document we created in this article:

Generating The Report

import json

from groupdocs.assembly import DataSourceInfo, DocumentAssembler

with open("products.json", encoding="utf-8") as f:
    products = json.load(f)

assembler = DocumentAssembler()
assembler.assemble_document("multicolored-numbered-list.msg", "multicolored-numbered-list-report.msg", [
    DataSourceInfo(products, "products"),
    DataSourceInfo("Harbor Lane Provisions <orders@harborlane.example>", "sender"),
    DataSourceInfo(["Quayside Bistro <orders@quaysidebistro.example>", "jonas.weber@harborlane.example"], "recipients"),
    DataSourceInfo("amara.osei@harborlane.example", "cc"),
    DataSourceInfo("Multicolored numbered list", "subject"),
])

The following sample file is used in this example: multicolored-numbered-list.msg

The following sample file is used in this example: products.json

Binary file (MSG, 52 KB)

Download full output

Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.