Quantcast
Viewing all articles
Browse latest Browse all 5661

How to properly close and dispose of reports loaded by PSReportFactory

Hello,

 

I would like to know if there is a way to close and dispose of a report loaded via the CrystalProcessingServer2011 (PSReportFactory in code).

Previously I had used a report client document as my source and could get a reference to this to close and dispose of on the page unload.

However now the crystal report viewer's source is loaded via reportFactory.OpenReportSource(rptID) (reportFactory is PSReportFactory).

ReportSource (or ISCRReportSource) don't provide any methods for closing or disposing.

Currently I'm simply setting the Session variable holding this source to null on unload and hoping the ProcessingServer would close at it's own

convenience.

I would appreciate if someone could suggest a method to explicitly close and dispose of this report source.

 

 

Thanks in advance


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>