protected ReportResponse Display(ReportRequest request)
        {
            ReportResponse response = new ReportResponse();

            try
            {
                ReportExecuteResult result = new ReportExecuteResult();
                LoadReport(request, ref result);
                Render(request, ref result);
                GetPageNumber(request, ref result);
                response.Data = SetData(result, false);
            }
            catch (Exception ex)
            {
                response.Status  = 1;
                response.Message = ex.Message;
            }
            return(response);
        }
        protected ReportResponse Export(ReportRequest request)
        {
            ReportResponse response = new ReportResponse();

            try
            {
                ReportExecuteResult result = new ReportExecuteResult();
                LoadReport(request, ref result);
                Render(request, ref result);
                response.Data = SetData(result);

                //response.Data.FileName = fileName;
            }
            catch (Exception ex)
            {
                response.Status  = 1;
                response.Message = ex.Message;
            }
            return(response);
        }