First, place the image in the PageStyle band. You can determine if you are printing to the screen or printer by checking if the Report.PrinterDevice is nil or non-nil. Use the Report.BeforePrint event to make this check and then set the visibility of the image accordingly.
Not all printers support transparency. You should be fine if you set all of the components to Transparent = True, That should just work no matter if your printer supports transparency or not. In the case where your printer driver tries to print the other controls on the report in a manner that is not aesthetically pleasing, then you need to perform a report object loop and set the Transparent properties of the controls to True when printing to the screen and false when printing to the printer. An example of a report object loop can be found in an article on our tech-tips NG in the Code Based thread.
Use the PageStyle band. It prints behind all other bands and prints on every page. Resize the PageStyle to be the height of the available space on the page (usually you'll have quarter inch margins). Then drop a TppImage in the PageStyle band and assign the picture to it.
There is an example of building a dynamic image report page in our main report demo project. It is the Pyramid of Fish report. It builds a pyramid of fish images. Tiling would probably be something similiar. You'll have to create N number of images in the PageStyle band and load the image into each one of them.
Comments
printing to the screen or printer by checking if the Report.PrinterDevice is
nil or non-nil. Use the Report.BeforePrint event to make this check and then
set the visibility of the image accordingly.
Not all printers support transparency. You should be fine if you set all of
the components to Transparent = True, That should just work no matter if
your printer supports transparency or not. In the case where your printer
driver tries to print the other controls on the report in a manner that is
not aesthetically pleasing, then you need to perform a report object loop
and set the Transparent properties of the controls to True when printing to
the screen and false when printing to the printer. An example of a report
object loop can be found in an article on our tech-tips NG in the Code Based
thread.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
page. Resize the PageStyle to be the height of the available space on the
page (usually you'll have quarter inch margins). Then drop a TppImage in the
PageStyle band and assign the picture to it.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
report demo project. It is the Pyramid of Fish report. It builds a pyramid
of fish images. Tiling would probably be something similiar. You'll have to
create N number of images in the PageStyle band and load the image into each
one of them.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com