SAP Knowledge Base Article - Public

3059005 - CrystalReportViewer1.ReuseParameterValue = false; does not prompt users for new parameter values in Crystal Reports for Visual Studio SP 30

Symptom

After creating a simple web app:

using System; using System.Data;

using System;

using System.Data;

using System.Configuration;

using System.Linq;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using System.Xml.Linq;

 

using CrystalDecisions.Shared;

using CrystalDecisions.CrystalReports.Engine;

using CrystalDecisions.Web;

 

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:\reports\parameter.rpt");

 

        CrystalReportViewer1.EnableParameterPrompt = true;

        CrystalReportViewer1.HasRefreshButton = true;

        CrystalReportViewer1.ReuseParameterValuesOnRefresh = false;

 

        CrystalReportViewer1.ReportSource = rpt;

    }

}

Refreshing the report does not prompt for new values

Environment

Crystal Reports for Visual Studio SP 30

Reproducing the Issue

  1. Run the test app, change the report location to where ever you extracted the app to, and then click the Refresh button, it should prompt for new values but does not
  • Note: copy the CrystalReportsViewers13 folder in this location: D:\CPP Net 2019\WEB1\CrystalReportsWebSite1\aspnet_client\system_web\4_0_30319\crystalreportviewers13
  • From: C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13

Resolution

This issue has been escalated to R&D for a fix in SP 31

Keywords

Cr for vs, parameter prompt, CrystalReportViewer1.ReuseParameterValue , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio

Attachments

parameter.rpt
WEB1.zip