Report, print at the last page

Hello,

I have to do a report RTC (with Visual Studio), which contains a checkbox (boolean) in request page.

If this checkbox is checked, the report prints a picture at the last page (all over the page), else do not print the picture.

Knowing that my report contains a header and a footer, how could I do that ?

I can’t put PrintOnLastPage = false to hide the header and footer at the last page because I have to print them when the checkbox = false (and there isn’t any way to control this propriety with code !!)

thank you for your help.