on 07-30-2009 3:55 PM
When should ReportDocument.Dispose() be called because, in the VS2005 walkthroughs, it is not called.
Edited by: Ajay Shah on Jul 30, 2009 4:55 PM
When ever it makes sense in your application. Page_Unload() may be a good place(?):
Dim report as New ReportDocument
Protected Sub Page_load()
.
.
.
End Sub
Private Page_Unload()
report.close()
report.dispose()
End Sub
Ludek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not really sure what the questions are here, but here's an attempt at an answer.
1. The CrystalReportViewer isn't as critical as the ReportDocument. The viewer doesn't hold onto temp report files and print jobs like the ReportDocument object does.
2. The ReportDocument holds onto temporary report files if it is not cleaned up correctly.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.