Using report sections with groups
Let's design our report, so every Ship City will have its own title:
- Add a new sections, named ShipCityHeader
- Copy the ShipCity from the grid in the details section to the new ShipCityHeader section
- Set it with an appropriate font
In the report controller
- In the constructor add the required OrderBy
- Add a group usign the gro snippet
- Specify the column that, upon changing, will display the new section
- Specify which section to write whenever a new ShipCity is reached
OrderBy.Add(Orders.SortByCustomerID);
Groups[Orders.ShipCity].Enter += () =>
{
_layout.ShipCityHeader.WriteTo(_Printer);
};
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com