水晶报表未显示报表更改 [英] Crystal Report Not Showing Changes to Report

查看:83
本文介绍了水晶报表未显示报表更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

继承了一个ASP.NET Web应用程序,该应用程序使用Crystal Reports显示报告。我想将一个新字段添加到一个.rpt文件中,但注意到在调用报表时未显示我的更改。

I've inherited an ASP.NET web application which displays reports using Crystal Reports. I wanted to add some new fields to one .rpt, but noticed that my changes were not being displayed when the report was called.

认为可能是我的更改被归咎于,我只是在原件上更改了一些标签文本;但是我的更改仍未反映在该网站显示的报告中。

Thinking that maybe my changes were to blame, I merely changed some label text on the original; yet my changes were still not reflected in the report displayed by the site.

我已经尝试过:


  • 重置IIS

  • Resetting IIS

移动/重命名.RPT文件(
网站仍然能够加载
旧报告
),这主要是导致我认为我在这里感到困惑的原因。

Moving/Renaming the .RPT file (and the site is still able to load the old report) This is mainly what leads me to think I'm confused here.

开始/停止网站

回收应用程序池

删除ASP.net临时文件

Deleting ASP.net temp files


IIS中的rpt上设置内容过期

Setting Content Expiry on the rpt in IIS

I仅发现了一个(未回答)类似的问题这里

I've only found one (unanswered) similar question here.

我不知道我是否只是不理解报告的调用方式,所以这里是

I don't know if maybe I'm just not understanding how the report is called, so here is the relevent portion of the code calling BookstoreReport.rpt.

            else if (print=="bookstorereport")
            {
                BookstoreReport Report = new BookstoreReport();
                foreach (CrystalDecisions.CrystalReports.Engine.Table myTable in Report.Database.Tables) 
                {   //connect to local db
                    myLogin = myTable.LogOnInfo; 
                    myLogin.ConnectionInfo.DatabaseName="abc";
                    myLogin.ConnectionInfo.UserID="def";
                    myLogin.ConnectionInfo.Password="ghi";
                    myTable.ApplyLogOnInfo(myLogin); 
                }
                CrystalReportViewer1.ReportSource=Report;
            }
            else if (print=="bookstorereceipt") *etc*


推荐答案

网站是否已编译?如果您没有App_Code文件夹,或者bin文件夹中包含站点名称的dll,则将编译该站点,并且您对.rpt文件所做的更改不会将其放入dll中。

Is the site compiled? If you don't have an App_Code folder or if there is a dll in the bin folder with the name of the site, then the site is compiled and the changes you are making to the .rpt file aren't making it into the dll.

这篇关于水晶报表未显示报表更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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