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

Problem with background image layout and query

edited July 2008 in General
hi, i have a report that uses pagestyle to set a background image that
covers the whole page.

My problem is that i have 2 background images: 1 for the normal pages
and 1 for the LAST page of the report. These pages have the same header
(no problem on this) while the footer only prints in last page (no
problem on this either). But the Details have to be printed on different
size regarding if it's normal pages or last one.

I made this almost work by resizing and hiding Footer at OnStartPage
event based on PageNo and PageCount (if they are equals print last-page
background).

Normal page details have more height that last page ones.

My problem is that if the query returns data that fits the first page on
the normal layout leaving the second blank, the report shows me the last
page backgroundand data are cutted when the footer starts, also i see
PageNo and PageCount both at 1 (Page 1 of 1) but in the preview i can
click on next page button which leads to an unending loading page with
"Calculating page 1 for Report...".

If the query returns enough data to cover the second page there are no
problems.

Thanks for any help you could give.

Comments

  • edited July 2008
    Hi Fabio,

    This is most likely a sizing issue. As a test, try removing the image from
    the pagestyle band and see if that is causing the problem. Then try
    vertically shrinking the large image a bit and see if the problem persists.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2008
    Nico Cizik (Digital Metaphors) ha scritto:
    The problem persist even without pagestyle band, anyway i cannot remove
    the image nor i can resize it in any way, i must keep the image as it
    was provided with a 1:1 ratio.

    I thought the solution to my problem was to "tell" the program to get
    data from DB as if there is not an A4 page to put them but a smaller one
    like a 200 mm height page, but i don't know how to set this thing.
  • edited July 2008
    Hi Fabio,

    If you still see this behavior without the pagestyle band, then the problem
    must be with another aspect of your report. Which version of ReportBuilder
    and Delphi are you using? Are you able to recreate this issue with a simple
    example that I could run on my machine? If so, please send the example in
    .zip format to support@digital-metaphors.com and I'll take a look at it for
    you.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2008
    Nico Cizik (Digital Metaphors) ha scritto:

    thanks for the help but i don't need this anymore, i changed the whole
    report and solved it, thanks anyway

    Cheers.
  • edited August 2008
    Dear Fabio,


    Please help me which I do report that uses pagestyle to set a background
    image that covers the whole page for a background image.

    Regards,

    Ali Abbasi



    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.