Print Header-Band if masterband is empty

Hello,

in some circumstances, I would like a headerband to be printed even if the associated masterband has no rows to print.

Any hint if it's possible to force this?

Thanks, Daniel

Comments

  • edited September 2012
    Hi...

    Well... i needed to do something like that.

    My case was:
    PageHeader 1 (data from MasterTable)
    Header1
      GroupHeader1
        MasterData1 (data from DetailTable)
      GroupFooter1
    Footer1
    

    I needed to print Header1 and Footer1, even MasterData1 had no row to print.

    My Solution was the follow:
    PageHeader1
    GroupHeader1 (my old Header1)
      MasterData1
        GroupHeader2 (my old GroupHeader1)
          DetailData1 (my old MasterData1)
        GroupFooter2 (my old GroupFooter1)
    GroupFooter1 (my old Footer1)
    

    - set the DataSet property from MasterData1 to MasterTable
    - set the DataSet property from DetailData1 to DetailTable.
    - link the GroupHeader1 with the MasterTable through its PK
    - link the GroupHeader2 with the DetailTable through its FK from the MasterTable
    - set the Height property from MasterData1 to 0 (zero)
    - set the MasterData1's property PrintIfDetailIsEmpty to True

    That??s it.
    This way I printed GroupHeader1 and GroupFooter1 even when DetailData1 has no row to be printed.

    I hope that??s helpfull for you.

    Hugs

    Joao Henrique

Leave a Comment