带有Crystal Reports的Windows窗体的内存问题 [英] Memory Problem with Windows Forms with Crystal Reports

查看:83
本文介绍了带有Crystal Reports的Windows窗体的内存问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2005中的c#windows窗体应用程序来动态生成包含文本和图像的报表。有一个主报告和几个子报告可能会或可能不会根据用户首选项显示。每个报告都使用CrystalReportViewer控件显示在表单上。

I am working on a c# windows forms app in Visual Studio 2005 that dynamically generates reports that contain text and images.  There is a main report and several subreports that may or may not be displayed based on user preferences.  Each report is displayed on a form using the CrystalReportViewer control.

推荐答案

您需要确保在表单卸载时关闭并处理reportdocument对象。否则,内存将不会被释放。
You need to make sure that you close and dispose the reportdocument object on the form unload.  Otherwise the memory will not be released.


这篇关于带有Crystal Reports的Windows窗体的内存问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆