Dynamic 365 Business central: Header on First, Footer on Last page in RDLC Reports

Customizing Headers and Footers in Business Central Reports RDLC: First Page and Last Page Tricks

Suppose you are working on a report, and there is a requirement for the header to appear only on the first page and the footer to appear only on the last page of the document. 

It's always a good practice to check if there are properties available that can simplify your task. In this case, the PrintOnFirstPage and PrintOnLastPage properties for headers and footers can be very useful.

Here's how you can handle it:

Open the RDLC Layout. In the Header, right-click and select Header Properties.


Enable the option Print on first page and click OK.

In the Footer, right-click and select Footer Properties.


Enable the option Print on last page and click OK.


Save the changes, publish the report, and test the output.

Expected Output:

For a multi-page document:

The header will appear only on the first page. The footer will appear only on the last page.




For a single-page document:

Both the header and footer will be visible on the single page.


Hope this helps you!


Regards,

Khushbu Rajvi

Comments