Bulleted List in HTML Document

Note
In this article, we will use GroupDocs.Assembly to generate a Bulleted List report in HTML Document format.
Note
The code uses some of the objects defined in The Business Layer.

Bulleted List in HTML Document

Reporting Requirement

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

  • Report must show all the clients in a bulleted list format.
  • Report must be generated in the HTML Document.

Adding Syntax to be evaluated by GroupDocs.Assembly Engine

We provide support for the following clients:
<ul>
&lt;&lt;foreach [in getClients()]&gt;&gt;
<li>&lt;&lt;[getName()]&gt;&gt;</li>
&lt;&lt;/foreach&gt;&gt;
</ul>
Regular text. <span style="background-color:orange">Highlighted text.</span>

Download Bulleted List Template

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

Generating The Report

// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java
String srcDocument = "/Html Templates/Bulleted List.html";
String docReport = "/Html Reports/Bulleted 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());
}
Close
Loading

Analyzing your prompt, please hold on...

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