c# - How to dispose a crystal report? -
i new crystal report. have generate reports multiple pages. how dispose reports after use. tried following code.
protected void crystalreportviewer1_unload(object sender, eventargs e) { report.close(); report.dispose(); }
but gives error when trying navigate other pages. can suggest way dispose report? in event suppose close report?
be sure , call garbage collection manually after disposing report or form viewer on it. crytal/.net not clean (or fast enough) if don't.
Comments
Post a Comment