How do I create region in Footerband dynamically?
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
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
This discussion has been closed.
Comments
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