1

how to disable report automatic loading? This happens if I have default values for all parameters.

Thanks

3
  • 1
    Have you tried removing the default values, and setting ShowParameterPrompts="True" on the ReportViewer control? Why do you have default values set, if you don't want the report to use them? Commented Jun 15, 2012 at 14:22
  • Defaults will be used in most of cases, but users should be allowed to chose default or change it, I don't want to execute query every time someone starts report. Commented Jun 15, 2012 at 14:27
  • Any luck getting this working? Commented Jun 25, 2012 at 15:18

3 Answers 3

3

I found a work-around at Microsoft connect.

First, in the designer set ShowReportBody= false;

Then, in code behind:

 protected void ReportViewer1_SubmittingParameterValues(object sender, Microsoft.Reporting.WebForms.ReportParametersEventArgs e) { this.ReportViewer1.ShowReportBody = true; } 
Sign up to request clarification or add additional context in comments.

Comments

1

Set ShowParameterPrompts="True" on the ReportViewer control. This should disable auto-rendering the report.

Comments

0

Even if all parameters have default value in the report design, once deployed to the SSRS server, just simply uncheck 'Use default' of at least one parameter from the SSRS report web portal. The report will not run upon initial load/browsing to it.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.