protected virtual void Dispose(bool disposing) { if (disposing) { this.DataSources = null; // free managed resources if (this.m_Viewer != null) this.m_Viewer.Dispose(); } // free native resources if there are any. }
public ReportViewer() { this.m_Viewer = new Microsoft.Reporting.WebForms.ReportViewer(); this.DataSources = new cDataSource(this.m_Viewer); this.EnableFormat("HTML4.0"); this.EnableFormat("IMAGE"); }