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

Multi-pages report

edited September 2004 in General
How can I make a four pages report? I want almost the same thing on every
page. Three pages differ by the value of a label. I know I can code an event
to handle this but on the fourth page I have a field with a value taken from
a data-base. Any ideas of how I can make such a report?


Regards,
Paul

Comments

  • edited September 2004
    Hi Paul,

    I went ahead and created a small example showing how I would go about doing
    this. This example essentially creates a report with a lable and a Fixed
    style subreport inside the detail band with PrintCount set to 1, and
    AutoStop set to False. Then connected the dataset to the subreport leaving
    the main report without data. Finally with the use of the
    DetailBand.BeforePrint event and the Visibility property, I was able to get
    the effect you were after. Remember to set the Report.PageLimit to 4.

    http://www.digital-metaphors.com/tips/DataOn4thPage.zip

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2004
    Yes, this works fine if I scroll only once through the pages but if I go
    back to the third from the fourth page and then to the second I see the
    content of the fourth page on the current page. Any ideas of how I can avoid
    that? Maybe include three sub-reports in the main report? I've tried
    something like that but I see the content of the first sub-report on the
    second and third sub-reports. I think I'm not configuring something right.
    If you have another idea of how to do it, I'm opened to suggestions!


    Regards,
    Paul





  • edited September 2004
    Hi Paul,

    Try setting the Report.CachePages property to True. This will store the
    original pages into memory.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.