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

            rpt.Site = this.Site;
            return(rpt);
        }
        public void ShowExpiredVoucherCoupon(string reportName, DataSet dsReportsDataSet, DateTime fromdate, DateTime toDate, string DeviceType)
        {
            try
            {
                string sVersion, sSiteName;

                var vExpiredVoucherCoupon = new ExpiredVoucherCouponReport();

                vExpiredVoucherCoupon.SetDataSource(dsReportsDataSet);
                vExpiredVoucherCoupon.SetParameterValue("fromdate", fromdate);
                vExpiredVoucherCoupon.SetParameterValue("toDate", toDate);
                vExpiredVoucherCoupon.SetParameterValue("DeviceType", DeviceType);

                GetVersion_SiteName(out  sVersion, out  sSiteName);
                vExpiredVoucherCoupon.SetParameterValue("siteName", sSiteName);
                vExpiredVoucherCoupon.SetParameterValue("BMCVersion", sVersion);
                vExpiredVoucherCoupon.SetParameterValue("CurrencyCulture", ExtensionMethods.CurrentCurrenyCulture);
                vExpiredVoucherCoupon.SetParameterValue("CurrencySymbol", ExtensionMethods.CurrentCurrenyCulture.GetCurrencySymbol());
                vExpiredVoucherCoupon.SetParameterValue("DateCulture", ExtensionMethods.CurrentDateCulture);

                crystalReportViewer.ReportSource = vExpiredVoucherCoupon;
                AuditReports();

                strReportName = "Expired Voucher Coupon Report";

            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     ExpiredVoucherCouponReport rpt = new ExpiredVoucherCouponReport();
     rpt.Site = this.Site;
     return rpt;
 }