private void PrintOrExportDetails(bool Print)
        {
            string sType = string.Empty;

            switch (_iType)
            {
            case 1: sType = "(Day)"; break;

            case 2: sType = "(Drop)"; break;

            case 3: sType = "(Week)"; break;

            case 4: sType = "(Month)"; break;

            default: sType = ""; break;
            }

            string sReportName = txtHeader.Text.Trim() + sType;

            using (CReportViewer cReportViewer = new CReportViewer())
            {
                if (dtPrintDetails.Rows.Count > 0)
                {
                    cReportViewer.ShowReportsAnalysisDetails(dtPrintDetails, sReportName, Print, TotalAvgBet, string.Empty);
                }
            }
        }
        private void PrintOrExportDetails(bool Print)
        {
            try
            {
                string sType = string.Empty;
                if (ParentElement != AnalysisDetailsParent.SiteInterrogration)
                {
                    switch (_iType)
                    {
                    case 1: sType = "(Day)"; break;

                    case 2: sType = "(Drop)"; break;

                    case 3: sType = "(Week)"; break;

                    case 4: sType = "(Month)"; break;

                    default: sType = ""; break;
                    }
                }

                string sReportName = this.Caption.Trim() + sType;

                using (CReportViewer cReportViewer = new CReportViewer())
                {
                    if (dtPrintDetails.Rows.Count > 0)
                    {
                        string sAnalysisDetails = string.Empty;
                        lstAnalysisDetails.SelectAllCells();
                        lstAnalysisDetails.ClipboardCopyMode = (Microsoft.Windows.Controls.DataGridClipboardCopyMode)DataGridClipboardCopyMode.IncludeHeader;
                        ApplicationCommands.Copy.Execute(null, lstAnalysisDetails);
                        lstAnalysisDetails.UnselectAllCells();
                        try
                        {
                            sAnalysisDetails = (string)Clipboard.GetData(DataFormats.CommaSeparatedValue);
                            Clipboard.Clear();
                        }
                        catch
                        {
                            MessageBox.ShowBox("MessageID56");
                        }

                        cReportViewer.ShowReportsAnalysisDetails(dtPrintDetails, sReportName, Print, TotalAvgBet, sAnalysisDetails);
                    }
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }
        private void PrintOrExportDetails(bool Print)
        {
            string sType = string.Empty;
            switch (_iType)
            {
                case 1: sType = "(Day)"; break;
                case 2: sType = "(Drop)"; break;
                case 3: sType = "(Week)"; break;
                case 4: sType = "(Month)"; break;
                default: sType = ""; break;
            }

            string sReportName = txtHeader.Text.Trim() + sType;

            using (CReportViewer cReportViewer = new CReportViewer())
            {
                if (dtPrintDetails.Rows.Count > 0)
                {
                    cReportViewer.ShowReportsAnalysisDetails(dtPrintDetails, sReportName, Print, TotalAvgBet,string.Empty);
                }
            }
        }