‫۸ سال و ۵ ماه قبل، چهارشنبه ۲۵ فروردین ۱۳۹۵، ساعت ۱۴:۵۲
با سلام
به چه صورت میشه فایل pdf از طریق Jsonresult فلش کرد؟
public JsonResult PdfReport(ReportViewModel model)
        {
            if (model == null)
                return Json(new
                {
                    success = false
                },
                    JsonRequestBehavior.AllowGet);
            var report = new GeneratePdfReport();
            report.CreatePdfReport(AutoMapperHelper.Map<ReportViewModel, Report>(model));
            return Json(new
            {
                success = true
            }, JsonRequestBehavior.AllowGet);
        }
 و برای flash کردن:
fileName = HttpUtility.UrlEncode(fileName, Encoding.UTF8);
                    data.FlushInBrowser(fileName, FlushType.Inline);
اما فایل پی دی اف attach نمیشه