locked
It can not show report even if passing correct number of parameters, no errors too RRS feed

  • Question

  • User-632680679 posted

    http://social.msdn.microsoft.com/Forums/en-US/4a5736ba-8937-46f2-b671-f07d17c69985/it-can-not-show-report-even-if-passing-correct-number-of-parameters-no-errors-too?forum=sqlreportingservices

    Tuesday, March 11, 2014 6:18 AM

All replies

  • User-734925760 posted

    Hi,

    According to your code and your description, I did not find some errors, now we should check if the parameters with value.

    First, if it is server report, we should use ReportViewer1.ServerReport.SetParameters(reportParameterCollection), else we need use ReportViewer1.LocalReport.SetParameters(reportParameterCollection);
    Second, please refer to the show the parameters use the code below:

    ReportViewer1.ShowParameterPrompts = true;
    

    For more information, please refer to the links below:

    http://msdn.microsoft.com/en-us/library/vstudio/ms252663(v=vs.100).aspx

    http://msdn.microsoft.com/en-us/library/microsoft.reporting.webforms.reportviewer.showparameterprompts(v=vs.90).aspx

    Hope it's useful for you.

    Best Regards,

    Michelle Ge

    Tuesday, March 11, 2014 10:35 PM
  • User-632680679 posted

    after set it true, it return unauthorized even if using administrator to open cmd to open solution project to run to open internet explorer

    http://social.msdn.microsoft.com/Forums/en-US/4a5736ba-8937-46f2-b671-f07d17c69985/it-can-not-show-report-even-if-passing-correct-number-of-parameters-no-errors-too?forum=sqlreportingservices

    Wednesday, March 12, 2014 12:30 AM