【问题标题】:How to dispose a crystal report -in load or unload event?如何处理水晶报表 - 加载或卸载事件?
【发布时间】:2015-04-27 20:54:16
【问题描述】:

我是水晶报表的新手。如何使用以下方法处理报告。

 report.Close();
 report.Dispose();

我必须在水晶报表查看器的加载或卸载事件中使用它吗? 任何人都可以建议一种处理报告的方法吗?

【问题讨论】:

    标签: crystal-reports


    【解决方案1】:

    我总是使用托管报表查看器的表单的 FormClosed 事件。

       private void CrystalPreviewForm_FormClosed(object sender, FormClosedEventArgs e)
            {
    
                    if (this.reportDocument != null)
                    {
                        this.reportDocument.Close();
                        this.reportDocument.Dispose();
                    }
    
            }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多