-1
크리스탈 보고서가 차지하고 있던 메모리를 해제하는 적절한 방법을 알고 싶습니다.수정 보고서에서 메모리를 확보하는 적절한 방법은 무엇입니까
ReportDocument reportdocument = new ReportDocument();
try
{
reportdocument.Load(Server.MapPath(@"~/EndUser/PostHistoryReport.rpt"));
reportdocument.SetDataSource(myDataSet);
reportdocument.SetDatabaseLogon("user", "user123");
CrystalReportViewer1.ReportSource = reportdocument;
}
finally
{
if (reportdocument != null)
{
reportdocument.Close();
((IDisposable)reportdocument).Dispose();
GC.Collect();
}
}