Disable OnDrawCommandClick while report is generating/calculating
The title pretty much sums it up. Lately we are moving the bulk of our project under a single TFDConnection object.
We have OnDrawCommand click events that fire off some queries and it's stepping on the Report generation (UseBackgroundThread=True). Is there a boolean or some other way we can disable OnDrawCommandClicks until the report is completely done? Obviously we'd like to keep the multi threaded aspect of it if possible.
We have OnDrawCommand click events that fire off some queries and it's stepping on the Report generation (UseBackgroundThread=True). Is there a boolean or some other way we can disable OnDrawCommandClicks until the report is completely done? Obviously we'd like to keep the multi threaded aspect of it if possible.
Comments
Use the TppViewer.OnEndGenerate event to determine when the page cache has finished. From there, you can re-attach the DrawCommandClick events. Access the viewer using the Report.PreviewForm property.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com