In-Paragraph List in Email Document
Leave feedback
NoteIn this article, we will use GroupDocs.Assembly to generate a In-Paragraph List report in Email Document format.
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.
We provide support for the following clients: <<foreach [in getClients()]>><<[indexOf() != 0 ? ", " : ""]>><<[getName()]>><</foreach>>
Please download the sample Common List document we created in this article:
NoteThe code uses some of the objects defined in: The Business Layer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.