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.
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.
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 :
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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 :