Exemplo n.º 1
0
        public ActionResult OpenReport(int year, string period, string usedBudget)
        {
            var dir = new Dictionary <string, string> {
                { "Year", year.ToString() }, { "Period", period }, { "UsedBudget", usedBudget }
            };
            var fileStream = _pdfGenerator.GetPdf("RESULT_REPORT", dir);
            var ms         = new MemoryStream(fileStream);

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