Skip to Content
Former Member
Mar 21, 2014 at 07:49 PM

How to properly close and dispose of reports loaded by PSReportFactory



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


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

Thanks in advance