Event that fire when report has finished
-
- Posts: 66
- Joined: Wed Apr 04, 2007 3:32 am
- Location: Spain
Event that fire when report has finished
Hi:
I'm looking for an event that I can create a hander for (in code) that fires when the report has completely finished it's task. This may be after the preview window has closed, after the printing to a printer has finished or after the report has finished exporting.
Is there an event for this?
I want to destroy some resources (data source) that I have created specifically for the report, so when the report no longer needs it, I want to destroy it, releasing it's resources.
TIA,
MartinH.
I'm looking for an event that I can create a hander for (in code) that fires when the report has completely finished it's task. This may be after the preview window has closed, after the printing to a printer has finished or after the report has finished exporting.
Is there an event for this?
I want to destroy some resources (data source) that I have created specifically for the report, so when the report no longer needs it, I want to destroy it, releasing it's resources.
TIA,
MartinH.
Event that fire when report has finished
Report.EndRender() ?
-
- Posts: 66
- Joined: Wed Apr 04, 2007 3:32 am
- Location: Spain
Event that fire when report has finished
If I destroy the DataSoure in the EndRender event, and the report is still visible in a preview window, wouldn't it complain?EDV wrote:Report.EndRender() ?
I use report.Render() and then report.Show() when using preview, so when would the event fire? After the Render() statement or after the Show() is closed?
TIA,
Martin.
Event that fire when report has finished
There are a number of static global events for different tasks like When a Report finishes rendering, Report Export, Report Save, load etc.
To view a list of them they are available in
A number of other static events are available that are more specific to the Designer or Preview control which can be found in:
If you are using the static events you only need to register for the event once within your application.
To view a list of them they are available in
Code: Select all
Stimulsoft.Report.StiOptions.Engine.GlobalEvents
Code: Select all
Stimulsoft.Report.Design.StiDesigner
Stimulsoft.Report.Render.StiPreviewControl
Event that fire when report has finished
Event EndRender occurs when report rendering is finished. After then you can clear report template or do something also because rendered report stored in collection - RenderedPages. Method "Show" work with collection "RenderedPages" only.MartinH wrote:If I destroy the DataSoure in the EndRender event, and the report is still visible in a preview window, wouldn't it complain?EDV wrote:Report.EndRender() ?
I use report.Render() and then report.Show() when using preview, so when would the event fire? After the Render() statement or after the Show() is closed?
TIA,
Martin.
Thank you.
-
- Posts: 66
- Joined: Wed Apr 04, 2007 3:32 am
- Location: Spain
Event that fire when report has finished
Brendan:Brendan wrote:There are a number of static global events for different tasks like When a Report finishes rendering, Report Export, Report Save, load etc.
To view a list of them they are available in
A number of other static events are available that are more specific to the Designer or Preview control which can be found in:Code: Select all
Stimulsoft.Report.StiOptions.Engine.GlobalEvents
If you are using the static events you only need to register for the event once within your application.Code: Select all
Stimulsoft.Report.Design.StiDesigner Stimulsoft.Report.Render.StiPreviewControl
Once again you have helped jog my memory and reminded me of the static event handlers. I'll certainly check them out, I think this may resolve my problem.
Regards,
MartinH.
-
- Posts: 66
- Joined: Wed Apr 04, 2007 3:32 am
- Location: Spain
Event that fire when report has finished
Vital:Vital wrote:Event EndRender occurs when report rendering is finished. After then you can clear report template or do something also because rendered report stored in collection - RenderedPages. Method "Show" work with collection "RenderedPages" only.MartinH wrote:If I destroy the DataSoure in the EndRender event, and the report is still visible in a preview window, wouldn't it complain?EDV wrote:Report.EndRender() ?
I use report.Render() and then report.Show() when using preview, so when would the event fire? After the Render() statement or after the Show() is closed?
TIA,
Martin.
Thank you.
Thanks for the clarification, it makes sense when you think about it. I'm still learning the philosophy of the product, but every step opens a whole new range os possibilities.
Thanks,
MartinH.