Home Component Writing

How do I create region in Footerband dynamically?

edited January 2004 in Component Writing
Hi all
I want to put some different size pictures in the Footerband.
I don't know the amount of pictures before I print the report.
How do I create region and image components dynamically in the Footerband.
Thanks

Comments

  • edited January 2004

    The FooterBand must always be static height. The height should be determined
    prior to calling Report.Print.

    For examples of dyanmically creating reports, see the Code Based thread of
    the Tech Tips newsgroup.

    To create a Region you would code something like this:

    myRegion := TppRegion.Create(myReport.Owner);
    myRegion.Band := myReport.FooterBand;
    myRegion.Height := myReport.FooterBand.Height;

    To create an image inside the Region:

    myImage := TppImage.Create(myReport.Owner);
    myImage.Band := myReport.FooterBand;
    myImage.Region := myRegion;





    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.