public async Task <IActionResult> CreateFileWord(string html) { try { return(File(HtmlToWord.HtmlToWordMethod(html), "application/force-download", "hoadon.docx")); } catch (Exception ex) { return(Json("")); } }
public async Task <IActionResult> CreateFileWord(string html) { try { return(File(HtmlToWord.HtmlToWordMethod(html), "application/force-download", "thongkebaiviettheochuyenmuc.doc")); } catch (Exception ex) { return(Json("")); } }
public async Task<IActionResult> CreateFileWord(string html="") { try { return File(HtmlToWord.HtmlToWordMethod(html), "application/force-download", "thongkevanban.doc"); } catch (Exception ex) { return Json(""); } }