In-Paragraph List in Email Document

Note
In this article, we will use GroupDocs.Assembly to generate a In-Paragraph List report in Email Document format.

In-Paragraph List in Email Document

Reporting Requirement

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

  • Report must be in .eml or .msg format.
  • It must add email recipient, css and subject of the email.
  • A descriptive or informative line like “We provide support for the following clients:”.
  • Show all the clients along with the above sentence.

Adding Syntax to be evaluated by GroupDocs.Assembly Engine

We provide support for the following clients: <<foreach [in getClients()]>><<[indexOf() != 0 ? ", " : ""]>><<[getName()]>><</foreach>>

Download In-Paragraph List Template

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

Generating The Report

Note
The code uses some of the objects defined in: The Business Layer
// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java
String srcDocument = "/Email Templates/In-Paragraph List.eml";
String docReport = "/Email Reports/In-Paragraph List_report.eml";
Object[] getDataSourceDetails = DataStorage.emailDataSourceObject("In-Paragraph List.eml", ".eml");
String[] dataSourceNames = DataStorage.emailDataSourceName(".eml");
DocumentAssembler assembler = new DocumentAssembler();
assembler.assembleDocument(CommonUtilities.getDataPath(srcDocument),
CommonUtilities.getOutPath(docReport), getDataSourceDetails,
dataSourceNames);

Close
Loading

Analyzing your prompt, please hold on...

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