In-Paragraph List in HTML Document
Leave feedback
NoteIn this article, we will use GroupDocs.Assembly to generate In-ParagraphList report in HTML Document format.
NoteThe code uses some of the objects defined in The Business Layer.
As a report developer, you are required to share the following key requirements:
- A descriptive or informative line like “We provide support for the following clients:”.
- Show all the clients along with the above sentence.
- Report must be generated in the HTML Document.
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:
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 = "/Html Templates/In-Paragraph List.html"; | |
String docReport = "/Html Reports/In-Paragraph List_report.html"; | |
try { | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.assembleDocument(CommonUtilities.getDataPath(srcDocument), | |
CommonUtilities.getOutPath(docReport),new DataSourceInfo( new DataStorage(), null)); | |
} catch (Exception exp) { | |
System.out.println("Exception: " + exp.getMessage()); | |
} |
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.