水晶報表部份問題解決

    技术2022-05-11  19

    1。打印预览75次後,出現報表綁定失敗。

    現象:無Header,無數據顯示,Reportdocument 對象丟失。 

    解決方法:在報表模板的PaUnLoad方法放ReportDocument對象。

    如:

    protected void Page_UnLoad(object sender, EventArgs e) {        if (this.rd != null) {            this.rd.Close ();            this.rd.Dispose ();        }    } //rd 為ReportDocument對象。

    2。NTFS格式的系統文件,導致無法找到報表文件,為文件訪問權限引起。

    現象:在加載報表時無沒找到報表文件,但在FAT32文件格式下報表一切正常。

    解決方法:修改web.config文件如下:

    <configuration><system.web><identity impersonate="true"/></system.web></configuration>


    最新回复(0)