private void GetDemurrageReportData() { Facade.IJob facJob = new Facade.Job(); int identityId = int.Parse(cboClient.SelectedValue); DataSet dsJobsWithDemurrage = facJob.GetJobsWithDemurrage(identityId, dteStartDate.SelectedDate.Value, dteEndDate.SelectedDate.Value); // Configure the report settings collection NameValueCollection reportParams = new NameValueCollection(); reportParams.Add("Client", cboClient.Text); reportParams.Add("StartDate", dteStartDate.SelectedDate.Value.ToString("dd/MM/yy")); reportParams.Add("EndDate", dteEndDate.SelectedDate.Value.ToString("dd/MM/yy")); // Configure the Session variables used to pass data to the report Session[Orchestrator.Globals.Constants.ReportTypeSessionVariable] = eReportType.DemurrageReport; Session[Orchestrator.Globals.Constants.ReportDataSessionTableVariable] = dsJobsWithDemurrage; Session[Orchestrator.Globals.Constants.ReportDataSessionSortVariable] = String.Empty; Session[Orchestrator.Globals.Constants.ReportDataMemberSessionVariable] = "Table"; Session[Orchestrator.Globals.Constants.ReportParamsSessionVariable] = reportParams; // Set the identity property of the user control reportViewer.IdentityId = identityId; // Show the user control reportViewer.Visible = true; }