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

background picture in preview

edited April 2003 in General
Hi,
Is it possible add a background picture to my pages with still visible just
in a preview report?
Thank you.

Comments

  • edited April 2003
    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.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited April 2003
    How can I stretch a image to all page? I try, I didn't.


  • edited April 2003
    Or how can I tile it?

  • edited April 2003
    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.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited April 2003
    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.

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.