Best Manufacturer Awards
Streamline your document creation process with Carbone
- Template type document docx simple
- Carbone min. v4.0.0+
- Features loop filter
- Target classification management result custom
Objectives
Generate a classification with the following feature:
- display a table with different column widths on the first page compared to subsequent pages.
Solution
Since the layout differs on the first page, the solution uses two tables: one for the first page and another for subsequent pages. The data is then filtered to display in the appropriate table.
Here’s how to construct a template to achieve this with Carbone:
Insert the first table on the first page
When defining your layout, determine the data that will fit on the first page (e.g., 3 objects).
Use a filter like
i < X
to select the firstX
elements.
Example:
{d[i,i<3].manufacturer}
- Define the iteration
[i+1]
in row below to generate a row for each key
Example:
{d[i+1,i<3]}
Insert the second table on the second page
- Use a filter like
i > X-1
to display all remaining properties.
Example:
{d[i,i>2].manufacturer}
- Define its iteration
[i+1]
in row below to generate a row for each key (e.g.,{d[i+1,i>2]}
Example:
{d[i+1,i>2]}
- Use a filter like
And there you go!
You might also like
Trusted by 600+ paid customers in 40+ countries
Finance
Healthcare
Public
Retail
Industries
Energy
Software
Telecom














