Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rendering report from URL

Status
Not open for further replies.

ChuckG

MIS
Feb 28, 2001
211
US
Hi,

We're just getting started with SQL Reporting Service, and we've run into a snag.

We have a report that's we designed. If I go into the properties and to the Parameters, if I set it to no default value and to Hide the user prompt, it does not seem to accept the parameter that I'm passing it via URL.
I get an error of "The 'CO_NUMBER_P' parameter is missing a value"

If I turn Hide off, and manually key the data, it pulls the report fine.

Here's the URL I'm passing to it.


Was wondering if anyone had any quick tips on getting this working. BTW this is SQL 2005 Reporting Service.

Thanks
Chuck
 
Not sure if it's what you've intended (as this site displays ampersand signs as &amp), but try using just the ampersand sign, and try removing the semi-colon also.

Hope this helps
 
No I just put Ampersand, no semi-colon nor the word amp.

 
Found the problem. The original programmer who was trying to pull this, was using REPORT.ASPX instead of REPORTVIEWER.ASPX

Switched it around to the correct ASPX file and it's working correctly now.

 
Following works:

List<ReportParameter> paramList = new List<ReportParameter>();
paramList.Add(new ReportParameter("manufacturer", "Sudhir", true));
paramList.Add(new ReportParameter("startDate", "1-1-2007", true));
paramList.Add(new ReportParameter("endDate", "1-1-2009", true));
ReportViewer1.ServerReport.SetParameters(paramList);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top