SAP Knowledge Base Article - Public

3023575 - Using a factor of 3.8 in a parameter causes the WEB viewer to refresh the UFL function in Crystal Reports for Visual Studio

Symptom

When using a UFL function and a parameter with a factor of 3.8 in the value the UFL function result is refreshed, any other value does not refresh the UFL function

Environment

Crystal Reports for VS - SP 24 and above

Reproducing the Issue

Create a simple WEB app using the following:

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
    protected void Page_Init(object sender, EventArgs e)
    {
        CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new ReportDocument();
        rpt.Load(@"D:\Atest\87413\testnodb11.4.rpt");
        Session.Add("rpt", rpt);
 
        // this sets the report to the session
        if (!IsPostBack)
        {
            CrystalReportViewer1.ReportSource = rpt;
        }
        else
            CrystalReportViewer1.ReportSource = Session["rpt"];
 
        CrystalReportViewer1.ReportSource = rpt;
        CrystalReportViewer1.ReuseParameterValuesOnRefresh = false;
    }
}
 
NOTE: not attaching the reports, these are instructions for R&D to use.
  • Change the path and report name to one of the following:
  • testnodb3.8 -  shows issue
  • testnodb3.9 - does not show issue
  • testnodb7.6 - shows issue
  • testnodb11.4 - does not show issue
 
  • When viewed in web app change the zoom from 100% to 125%
  • Note the time using our UFL "NOW" function
  • When the change happens the time value changes to the current value in the "shows issue" reports
  • Using the "does not show issue" value reports the time does not change.
NOTE: the issue is a factor of 3.8, so 3.8 divided or multiplied by 2,4,6 etc.

Cause

Issue is under investigation and assigned to R&D

Resolution

To be Determined

Keywords

CR for VS, Parameters, 3.8, UFL, refresh , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio