Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
melon.melon
Yak Posting Veteran
76 Posts |
Posted - 2009-03-23 : 01:30:24
|
I got the error that say that "Report_Parameter_DeptCode does not exist in the Report".. but it was added into the report already,Any idea how i can get this right? I need the parameter to hide the part that contains 2 dropdownlist.parameters[0] = new Microsoft.Reporting.WebForms.ReportParameter("Report_Parameter_DeptCode", ConstructDepartmentCodeParameter());ReportViewer1.ServerReport.SetParameters(parameters);Inside this method ConstructDepartmentCodeParameter()public string[] ConstructDepartmentCodeParameter() { employee = new EmployeeDetails(); employee.EmployeeID = Session["sessionID"].ToString().ToLower(); employee.DeptCode = Session["DeptCode"].ToString(); if (employee.DeptCode == "a" || employee.DeptCode == "b"|| employee.DeptCode == "c" || employee.DeptCode == "d") { //return para employee can select dropdownlist department & another dropdownlist Year to view all department & Year string[] para = new string[1]; para = null; return para; } else { //return para employee cannot select dropdownlist department & another dropdownlist Year to view all department & Year. Report is auto generated. int counter = 1; string[] para = new string[counter]; int counter2 = 0; para[counter2] = employee.DeptCode.ToString(); return para; } } |
|
djarekg
Starting Member
1 Post |
Posted - 2010-02-01 : 11:17:14
|
Did you ever get this figured out?Dustin J Griffith |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-02-01 : 11:52:40
|
quote: Originally posted by djarekg Did you ever get this figured out?Dustin J Griffith
Can I ask why you reopened old thread? are you facing similar problem? |
|
|
|
|
|