예제 #1
0
        public ActionResult ShipCodeInvoiceRegisterReport()
        {
            var operationResult = new OperationResult();

            MemoryStream ms = new MemoryStream();

            try
            {
                ms = ReportingManager.CreateShipCodeInvoiceRegisterReport();
            }
            catch (Exception ex)
            {
                operationResult.Message = "Error occured printing Invoice Register by Ship Code Report";
                logger.ErrorFormat("Error occured printing Invoice Register by Ship Code Report: {0} ", ex.ToString());
                this.AddNotification(operationResult.Message, NotificationType.ERROR);
            }

            return(new FileStreamResult(ms, "application/pdf"));
        }