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

Updating reports

edited May 2002 in General
When I run a report I collect all the TppDBText objects in the
ondrawcommandcreate events then add them to a list. I then run through this
list on a timer and update their values. The problem is that they never
refresh as I am unsure how to refresh these values without re-running the
reports.

I am using JIT pipelines so their is no database linking.

Any help on how to achieve this would be greatly appreciated.

Comments

  • edited May 2002
    Hi Daivd,

    Why not use the OnGetFieldValue event of the TppJITPipeline component
    to set the values?

    On Thu, 23 May 2002 09:48:02 +0100, "David Reynolds"
  • edited May 2002
    If you are using the OnDrawCommandCreate, you should not reference the
    TppDBText object, but rather the object which is passed is a TppDrawText
    object. Update the draw command in the Report.OnEndPage event. If you
    update the TppDBText component, the result will not be reflected in the
    report output since the draw command has already been created on the page.
    The OnEndPage event gives you the timing to update the draw command on the
    page after the report has finished with the page and just before it is sent
    to the device.

    If you have a JITPipeline, you can pull the data from anywhere and set the
    dbTexts to pull data from the data pipeline. Is this not working?


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited May 2002
    What happens when it has already been sent to the TppViewer. Is there any
    possible way of giving this the capability of updating itself without having
    to re-run the report (just update the relevant text components on screen).

  • edited May 2002
    Hi David,

    having

    No,
    there are no 'components on screen', the report becomes rendered on screen,
    only draw commands are acting.

    regards,
    Chris Ueberall;
This discussion has been closed.