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

create a "live" report

edited July 2014 in General
RB 14.07, Delphi Xe.

How can I create an auto-update report preview ?
Not important if really "live", but almost I need to refresh data every
X minutes.

i need to close preview, re-execute query and re-open.

thanks

Comments

  • edited July 2014
    Hi Diego,

    Take a look at the following article/example. It shows how to refresh a
    report (from the preview) after clicking a drawcommand. You could
    possibly use the same technique, perhaps with a TTimer, to refresh the
    report after a certain amount of time.

    http://www.digital-metaphors.com/rbWiki/Delphi_Code/Formatting/How_To...Refresh_the_Report_After_a_Drawcommand_Click

    Moving forward, we hope you will consider upgrading to the latest
    version of ReportBuilder. See the following web site for the new and
    exciting features added for RB 15.

    http://www.digital-metaphors.com/rbWiki/General/What's_New/RB_15

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2014
    Hi!
    i write code

    "
    ppReport1.Reset;
    ppReport1.Engine.Reset;
    [db refresh...]
    TppDrawText(aDrawCommand).RedrawPage := True;
    "

    inside a DrawCommandClick of one of my label inside report.
    se when i click on it, it correctly refresh.

    i'm tring to use a ttimer to do same autmatically every 5 mins.

    i need a "TppDrawText" istance to force refresh, so inside ontimer
    event i tried to call " pplabel.DrawCommandClickEvent(self) " to
    execute onDrawCommandClick code, but it's not fired.
    I tried with rb 14 and 15.

    how can i call a method with a "TppDrawText" from "outside" report
    builder?

    thanks



    Il 29/07/2014, Nico Cizik (Digital Metaphors) ha detto :
This discussion has been closed.