protected void btnPrintPreview_Click(object sender, EventArgs e) { ReportDAL rdal = new ReportDAL(); Result oResult = new Result(); Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; if (oConfig != null) { // Parameter string sCheckList = Util.GetCheckListIDList(chkLSpType); string sRptType = rdlStatus.SelectedValue; string dtFromDate = Util.GetDateTimeByString(txtFromDate.Text).ToString("dd-MMM-yyyy"); string dtToDate = Util.GetDateTimeByString(txtToDate.Text).ToString("dd-MMM-yyyy"); oResult = rdal.ACERegisterReport(sRptType, sCheckList, dtFromDate, dtToDate, oConfig.DivisionID, oConfig.BankCodeID); if (oResult.Status) { Session["ExportType"] = ddlExportType.SelectedValue; Session[Constants.SES_RPT_DATA] = oResult.Return; Page.RegisterStartupScript(Constants.REPORT_WINDOW, Util.OpenReport()); } } }