public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CDMDetailedView rpt = new CDMDetailedView();

            rpt.Site = this.Site;
            return(rpt);
        }
        public void showDetailedReport(DataSet _DtDetails, DateTime StartDate, DateTime EndDate,string sFooter,bool TicketShow)
        {
            try
            {
                CDMDetailedView vDetailedViewReport = new CDMDetailedView();
                
                //
                vDetailedViewReport.SetDataSource(_DtDetails);
                vDetailedViewReport.SetParameterValue("fromDate", StartDate);
                vDetailedViewReport.SetParameterValue("toDate", EndDate);
                vDetailedViewReport.SetParameterValue("FooterText", sFooter);

                string sVersion, sSiteName;
                GetVersion_SiteName(out  sVersion, out  sSiteName);
                vDetailedViewReport.SetParameterValue("SiteCode", Settings.SiteCode);
                vDetailedViewReport.SetParameterValue("siteName", sSiteName);
                vDetailedViewReport.SetParameterValue("BMCVersion", sVersion);
                vDetailedViewReport.SetParameterValue("CurrencyCulture", ExtensionMethods.CurrentCurrenyCulture);
                vDetailedViewReport.SetParameterValue("CurrencySymbol", ExtensionMethods.CurrentCurrenyCulture.GetCurrencySymbol());
                vDetailedViewReport.SetParameterValue("DateCulture", ExtensionMethods.CurrentDateCulture);
                vDetailedViewReport.SetParameterValue("TicketShow", TicketShow);

                crystalReportViewer.ReportSource = vDetailedViewReport;
                //vDetailedViewReport.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.HTML40, @"D:\Tryy.html");
                //vDetailedViewReport.PrintToPrinter(1, false, 0, 0);
                //MessageBox.Show("Sent to Printer Successfully.");
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     CDMDetailedView rpt = new CDMDetailedView();
     rpt.Site = this.Site;
     return rpt;
 }