Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Hide show footer with dynamic RTF

edited July 2004 in General
I have a report with a footer. The only thing in the main footer is a
dbrichtext field. How can I get the report to expand the footer based
on the RTF field and totally hide the footer if the RTF field is null or
blank and by blank i mean no visible text because there always seems to
be RTF coding in there even after you blank out the text.

Any ideas?

Thanks.

Comments

  • edited July 2004
    Hi Chris,

    Unfortunately the page footer is the only band in ReportBuilder that cannot
    be dynamically spaced or positioned. Space for the page footer is allocated
    before the report is generated. As a work around, you will need to use a
    group footer or the summary band.

    --
    Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
    Delphi Informant Readers Choice awards!

    http://www.delphizine.com/ballot2004/

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2004
    Nico Cizik (Digital Metaphors) wrote:

    Well I will know if the RTF is empty or not before the page is printed.
    IS there a way to 1. determine if a rtf field has real text in it then
    2. make the footer band 0 height all in the before print of the report?
  • edited July 2004
    Hi Chris,

    Inside the FooterBand.BeforePrint event, you could simply check the data
    field to be sure it actually contains data. If it does not, you could set
    the visibility of the footer band to False to remove it from view in the
    report.

    --
    Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
    Delphi Informant Readers Choice awards!

    http://www.delphizine.com/ballot2004/

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.