Hello,
is it possible to find out when the report viewer is closed? I need to make some memory deallocation after the user closed the report / report viewer. Or is there a better way and location to free some memory after the report is not longer open?
Thanks and kind regards
Thorsten Pontow
Is there a ViewerClosed-Event?
Is there a ViewerClosed-Event?
Thorsten Pontow
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Re: Is there a ViewerClosed-Event?
Hello.
Could you specify what Viewer do you use?
Thank you.
Could you specify what Viewer do you use?
Thank you.
Re: Is there a ViewerClosed-Event?
I've a similar behavior: using latest version of Stimulsoft and Vb.Net over .Net 3.5 on a Windows Form application.
I use to load a list of with data to be rendered on the report and pass it, using the code below
Dim report1 As StiReport = Get_NewReport()
report1.Load(report)
report1.RegData(regDataName.ToString, data)
report1.ReportDescription = "DataName=" & regDataName.ToString
The memory usage is high but just because of the T-List is big, I was expecting a reduction of memory soon the report has been closed from the user but this doesn't happen. Please note I use to destroy the T-List and call GC.Collect soon after the report' .Show command. The only way is to shut down the Windows application (which is not an accetable solution=
Do you have any suggestion or work around to let the memory being freed?
Regards
I use to load a list of with data to be rendered on the report and pass it, using the code below
Dim report1 As StiReport = Get_NewReport()
report1.Load(report)
report1.RegData(regDataName.ToString, data)
report1.ReportDescription = "DataName=" & regDataName.ToString
The memory usage is high but just because of the T-List is big, I was expecting a reduction of memory soon the report has been closed from the user but this doesn't happen. Please note I use to destroy the T-List and call GC.Collect soon after the report' .Show command. The only way is to shut down the Windows application (which is not an accetable solution=
Do you have any suggestion or work around to let the memory being freed?
Regards
Re: Is there a ViewerClosed-Event?
I've a similar behavior: using latest version of Stimulsoft and Vb.Net over .Net 3.5 on a Windows Form application.
I use to load a list of with data to be rendered on the report and pass it, using the code below
Dim report1 As StiReport = Get_NewReport()
report1.Load(report)
report1.RegData(regDataName.ToString, data)
report1.ReportDescription = "DataName=" & regDataName.ToString
The memory usage is high but just because of the T-List is big, I was expecting a reduction of memory soon the report has been closed from the user but this doesn't happen. Please note I use to destroy the T-List and call GC.Collect soon after the report' .Show command. The only way is to shut down the Windows application (which is not an accetable solution=
Do you have any suggestion or work around to let the memory being freed?
Regards
I use to load a list of with data to be rendered on the report and pass it, using the code below
Dim report1 As StiReport = Get_NewReport()
report1.Load(report)
report1.RegData(regDataName.ToString, data)
report1.ReportDescription = "DataName=" & regDataName.ToString
The memory usage is high but just because of the T-List is big, I was expecting a reduction of memory soon the report has been closed from the user but this doesn't happen. Please note I use to destroy the T-List and call GC.Collect soon after the report' .Show command. The only way is to shut down the Windows application (which is not an accetable solution=
Do you have any suggestion or work around to let the memory being freed?
Regards
Re: Is there a ViewerClosed-Event?
Hello,
i am using Stimulsoft.Reports.Ultimate and so i display my reports in Forms-, Wpf- and Silverlight-Environment. I'm using the respective Viewer which opens when calling the
method. I'm using business objects and so i need to perform some memory deallocation tasks after the Viewer is closed by the application user.
Thanks
Thorsten Pontow
i am using Stimulsoft.Reports.Ultimate and so i display my reports in Forms-, Wpf- and Silverlight-Environment. I'm using the respective Viewer which opens when calling the
Code: Select all
StiReport.Show()
Thanks
Thorsten Pontow
Thorsten Pontow
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Re: Is there a ViewerClosed-Event?
Hello.
The Show() method creates a new form and it's impossible to handle its event.
But you could call the StiReport.Show(true) then the Dialog window with Viewer will be created. Next code will be executed after the closing of the viewer.
The other way is to create your own form with StiVeiwerControl and handle the Close event of this form.
Thank you.
The Show() method creates a new form and it's impossible to handle its event.
But you could call the StiReport.Show(true) then the Dialog window with Viewer will be created. Next code will be executed after the closing of the viewer.
The other way is to create your own form with StiVeiwerControl and handle the Close event of this form.
Thank you.