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

Problem using TppReport to generate multiple reports

edited May 2004 in General
I have a report which when it is used to generate multiple reports seems to
carry over state information between report generation. The report displays
3 items per page. If the las page of the previous report contains 2 items
then the first page of the following report displays only 1 item but the
rest of the pages display the correct number. If the last page of the
previous report displays 1 item the first page of the next report displays 2
items on the first page and the following pages display the correct number
of items. If the last page of the previous report contains 3 items the first
page of the next report displays the correct number of pages.
I have tried Report.Reset and Report.ResetAllDevices and this does not
resolve the problem.
Can anyone provide some suggestions to help resolve this?

Regards,
Doug

Comments

  • edited May 2004
    Hi Doug,

    How are you generating the new reports? You could always create the report
    object in code on demand and free it when you are done. This way you could
    be sure there is no information brought over. I would also recommend taking
    a look at the possibility of using Report Templates to save and load your
    reports. ReportBuilder allows you to save the complete report definition to
    a binary or ASCII file which you can later load into a single report object
    without the need to regenerate.

    --
    Best Regards,

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