Working with report sections
Adding a report section
When in the layout designer:
- Click on the existing section - a small arrow will appear in the top-right corner - click it You can see that you can specify the section's name
- Press the Add Section and provide it with a meaningful name
- You can move any section by pressing the Move Down or Move Up
Designing a report section
This is done pretty much like you did so far. So, for example, you can create two new sections, name them PageHeader and PageFooter. Then drag the title, page number and date to the PageHeader.
Use the added sections in the report controller
In the PrinterWriter , add the PageHeader and PageFooter properties, indicating the appropriate sections in the layout:
_Printer = new PrinterWriter
{
PrintPreview = true,
PageHeader = _layout.PageHeader,
PageFooter = _layout.PageFooter
};
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com