I am using Visual Studio 2008 and Crystal Reports XI. When i run the application locally it displays fine. When I deploy to a windows 2008 server I receive: Report you requested requires further information
Below is a copy of my code (there is no password and user name is being passed by a variable created prior to this method). Any advice?
CrystalDecisions.Shared.
ParameterDiscreteValue pdv = new CrystalDecisions.Shared.ParameterDiscreteValue();
CrystalDecisions.CrystalReports.Engine.
ReportDocument crReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
crReport.FileName = Server.MapPath(
"report1.rpt");
ParameterValues values0 = new ParameterValues();
pdv.Value =
"MIA";
values0.Add(pdv);
crReport.DataDefinition.ParameterFields[0].ApplyCurrentValues(values0);
ParameterValues values1 = new ParameterValues();
pdv.Value =
DateTime.Now.AddDays(-6);
values1.Add(pdv);
crReport.DataDefinition.ParameterFields[1].ApplyCurrentValues(values1);
ParameterValues values2 = new ParameterValues();
pdv.Value =
DateTime.Now;
values2.Add(pdv);
crReport.DataDefinition.ParameterFields[2].ApplyCurrentValues(values2);
ParameterValues values3 = new ParameterValues();
pdv.Value =
"TEST";
values3.Add(pdv);
crReport.DataDefinition.ParameterFields[3].ApplyCurrentValues(values3);
crReport.SetDatabaseLogon(sUser
, "");
this.CrystalReportViewer1.EnableDatabaseLogonPrompt = false;
this.CrystalReportViewer1.ReportSource = crReport;
this.CrystalReportViewer1.DataBind();