PrintOnFirstPage for One Page Reports

TECH TIP: Using PrintOnFirstPage for One Page Reports

Question: I have a Footer that I do not want to print on the first page of my report, unless the report is only one page.”

Solution:

Both the Headerband and FooterBand have boolean properties called PrintOnFirstPage and PrintOnLastPage that can be used to control whether the respective bands print.

Example:

  1. Set default behavior prior to calling Report.Print

     
  2. Add the following code the Report.OnEndFirstPass event: