How To…Refresh the Report After a Drawcommand Click


“How can I refresh/redraw the report after I click a “hot” component on my report?”


Inside the OnDrawCommandClick event of a report component, reset the report and report engine.  Then set the DrawCommand.RedrawPage property to True. This is very similar to the way the AutoSearch feature functions and can also be done with RAP code using a small passthru function.


Sample Delphi code: