private void PrintSpotCheckReport() { Installations objInstallationDetails = tvMachineList.SelectedItem as Installations; if (objInstallationDetails == null) { return; } List <SpotCheck> lstSpotCheck = new List <SpotCheck>(); lstSpotCheck = lstSpotCheckSummaryDetails.Where(item => item.InstallationNo == objInstallationDetails.Installation_No).ToList(); if (lstSpotCheck == null || lstSpotCheck.Count <= 0) { return; } using (CReportViewer cReportViewer = new CReportViewer()) { cReportViewer.ShowSpotCheckReport( objInstallationDetails.Bar_Position_Name, objInstallationDetails.Zone_Name.IsNullOrEmpty() ? string.Empty : objInstallationDetails.Zone_Name, objInstallationDetails.GameTitle, //(Convert.ToDecimal(objInstallationDetails.POP) / 100).ToString(), (Convert.ToDecimal(objInstallationDetails.POP)).ToString(), lstSpotCheck[0].DateTimeStamp, (lstSpotCheck[0].CashIn - lstSpotCheck[0].CashOut), lstSpotCheck[0].CashIn, Convert.ToDecimal(lstSpotCheck[0].Payout), Convert.ToDecimal(lstSpotCheck[0].CoinsDrop.ToString("#,##0.00")), lstSpotCheck[0].HandPay, lstSpotCheck[0].Date, Settings.SiteCode ); cReportViewer.ShowDialog(); } }