For question 1... Create a "Last-Page content" section. This is all detailed in the BIP Report Designer's Guide.
At the very end of your template, do the following.
a) Create a Section Break of type Next Page.
b) Then lay out the format of the last page. Use the <?start@last-page:body?><?end body?> tags to mark off where the body of the page should be in relation to the header/footer calls.
Just bear in mind that your focus is on the Headers and Footers that you want to use.
For example, your existing template may have called Header and Footer templates. When you set up the new section page break with the following tags, you're telling the engine that:
- the new section is for the last page only.
- call the "Header" template to print stuff above the main body - this will be the Header of the last page.
- call the "RemitCoupon" template to print stuff below the main body - this will be the footer of the last page.
<?call:Header?>
<?start@last-page:body?><?end body?>
<?call:RemitCoupon?>
That should work for reports that have more than 1 page. If the possibility exists that the report will only be 1 page, and you still want the remit coupon on the 1st and last page - basically, the only page - in the report, then use:
<?start@last-page-first:body?><?end page?>
instead to mark out the placement of of the body of the last page.