ActiveReports 9 > ActiveReports User Guide > Samples and Walkthroughs > Walkthroughs > Page Report/RDL Report Walkthroughs > Layout > Collate Multiple Copies of a Report |
In a Page Report you can create reports with multiple themes, where you can control the page order of a rendered report by selecting the collation mode. This walkthrough uses a report that contains layouts on two page tabs in order to illustrate the collation feature.
This walkthrough is split into the following activities:
Note:
|
When you complete this walkthrough you get a report that looks similar to the following. These images show the result of the Value collation mode.
Page 1 | Page 2 | Page 3 | Page 4 | ||||
---|---|---|---|---|---|---|---|
|
|
|
|
To create a report layout on multiple pages
In a Page Report, you can apply more than one layout to a single report by using page tabs. See the walkthrough Overflow Data in Multiple Pages, to learn how to create a report that consists of a first page with a different layout from all subsequent pages.
Note: The information provided henceforth is an extension of the Overflow Data in Multiple Pages walkthrough, so we recommend that you go through this topic before moving to the next procedure. |
To add themes to the report
Theme 1
Property Name | Property Value | Description |
---|---|---|
Text/Background - Light1 (Colors tab) | Default (white) | To set the background color for the theme. |
Name (Constants tab) | Constant1 | To define a name for the constant expression to be used within in a theme. |
Value (Constants tab) | Theme1 | To associate a value to be used as a constant in the expression. |
Description (Constants tab) | Default Theme | To describe a constant expression. |
Theme 2
Property Name | Property Value | Description |
---|---|---|
Text/Background - Light1 (Colors tab) | Yellow | To set the background color for the theme. |
Name (Constants tab) | Constant1 | To define a name for the constant expression to be used within in a theme. |
Value (Constants tab) | Theme2 | To associate a value to be used as a constant in the expression. |
Description (Constants tab) | Yellow Theme | To describe a constant expression. |
To apply themes to the report
In order to apply themes to a report, you need to set the theme as a value of a property. In this walkthrough we set the theme in the BackgroundColor property.
Property Name | Property Value | ||
---|---|---|---|
Location | 4.4in, 0in | ||
Size | 2.1in, 0.25in | ||
Value |
= Theme.Constants("Constant1")
|
Your layout now contains two themes and a constant expression displaying the theme you are using on the top left corner of the page.
To set up collation
Collation is set to determine the order in which the report pages are rendered when you have multiple themes in the report. In order to define the order, you need to set the CollateBy property.
To view the report
OR