In-Table Master-Detail in HTML Document
Leave feedback
View as MarkdownMarkdown
In this article, we will use GroupDocs.Assembly to generate In-TableMaster-Detail report in HTML Document format.
The code uses some of the objects defined in
The Business Layer.
In-Table Master-Detail in HTML Document
As a report developer, you are required to represent the following key requirements:
- Report must show each manager along with his total contract prices.
- It must also show each individual client within the contract.
- It must show sum of the contract prices.
- It must represent all the information in tabular form.
- Report must be generated in the Word Processing Document.
Adding Syntax to be evaluated by GroupDocs.Assembly Engine
| <<foreach [in getManagers()]>> <<foreach [in getContracts()]>> <</foreach>> <</foreach>> |
| Manager/Client | Contract Price |
| <<[getName()]>> | <<[getContracts().sum(c => c.getPrice())]>> |
| <<[getClient().getName()]>> | <<[getPrice()]>> |
| Total: | <<[getManagers().sum( m => m.getContracts().sum( c => c.getPrice()))]>> |
Download In-Table Master-Detail Template
Please download the sample document we created in this article:
We value your opinion. Your feedback will help us improve our documentation.