با سلام
و برای flash کردن:
اما فایل پی دی اف attach نمیشه
به چه صورت میشه فایل 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); }
fileName = HttpUtility.UrlEncode(fileName, Encoding.UTF8); data.FlushInBrowser(fileName, FlushType.Inline);