internal void PrintPromotionalHistoryReport(DataSet dataSet) { try { string sVersion, sSiteName; var rPromotionalHistoryReport = new PromotionalHistoryReport(); rPromotionalHistoryReport.SetDataSource(dataSet.Tables[0]); GetVersion_SiteName(out sVersion, out sSiteName); rPromotionalHistoryReport.SetParameterValue("SiteName", sSiteName); rPromotionalHistoryReport.SetParameterValue("SiteCode", Settings.SiteCode); rPromotionalHistoryReport.SetParameterValue("BMC Version", sVersion); rPromotionalHistoryReport.SetParameterValue("CurrencyCulture", ExtensionMethods.CurrentCurrenyCulture); rPromotionalHistoryReport.SetParameterValue("CurrencySymbol", ExtensionMethods.CurrentCurrenyCulture.GetCurrencySymbol()); rPromotionalHistoryReport.SetParameterValue("DateCulture", ExtensionMethods.CurrentDateCulture); crystalReportViewer.ReportSource = rPromotionalHistoryReport; crystalReportViewer.Show(); //crystalReportViewer.PrintReport(); } catch (Exception ex) { ExceptionManager.Publish(ex); } }