zoukankan      html  css  js  c++  java
  • 水晶报表注意的问题

    1.防止数据丢失,有的时候,我们在打开一个报表时,会发现无缘无故的发生导出和刷新动作等,会出现错误。

    这时候,我们需要中间变量给它作为临时存储。比如session

    2.Page_Load不要使用if (!IsPostBack),因为水晶报表每次操作都需要更新。

    3.性能优化。

            public override void Dispose()
            {
                CrystalReportViewer1.Dispose();//释放CrystalReportViewer对象
                if (Rep != null)//释放ReportDocument对象
                {
                    Rep.Close();
                    Rep.Dispose();
                }
    
            }
            protected void Page_UnLoad(object sender, EventArgs e)
            {
    
                //建立完页面时,释放报表文档资源         
                CrystalReportViewer1.Dispose();
                this.Dispose();
                this.ClearChildState();
                if (Rep != null)//释放ReportDocument对象
                {
                    Rep.Close();
                    Rep.Dispose();
                }
            }
  • 相关阅读:
    Catalan数
    C# & LINQ 对象克隆
    Rotate Image
    反转链表
    QtCreator调试程序时GDB崩溃
    Regular Expression Matching
    Wildcard Matching
    DFA与NFA
    Set Matrix Zeroes
    PCA原理
  • 原文地址:https://www.cnblogs.com/david1989/p/3693247.html
Copyright © 2011-2022 走看看