protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session[Constant.PARAMETER_SAVINGSBYBIDITEM] == null) { return; } BidSavingsReportParameter param = (BidSavingsReportParameter)Session[Constant.PARAMETER_SAVINGSBYBIDITEM]; rvBidEvent.LocalReport.ReportPath = Request.PhysicalApplicationPath + @"reports\savingsbybidevent.rdlc"; rvBidEvent.ShowReportBody = false; ReportParameter[] RequestorParameter = new ReportParameter[2]; RequestorParameter[0] = new ReportParameter("BidRefNo", ToJoinedString(param.BidEvents)); RequestorParameter[1] = new ReportParameter("IsExternal", param.IsExternal.ToString()); rvBidEvent.LocalReport.SetParameters(RequestorParameter); rvBidEvent.ShowReportBody = true; rvBidEvent.LocalReport.Refresh(); } PageTitle.InnerText = String.Format(Constant.TITLEFORMAT, "Savings by Bid Event Report"); }
protected void lnkViewReport_Click(object sender, EventArgs e) { BidSavingsReportParameter param = new BidSavingsReportParameter(); param.BidEvents = GetBidRefNos(); param.IsExternal = rblInternalExternal.Items[0].Selected; Session[Constant.PARAMETER_SAVINGSBYBIDITEM] = param; Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "SHOWWINDOW", "<script type='text/javascript'> window.open('../reports/savingsbybidevent.aspx','r1', 'toolbar=no,width=960, menubar=no, resizable=yes , scrollbars=yes'); </script>"); }