Exemple #1
0
 public async Task <IActionResult> CreateFileWord(string html)
 {
     try
     {
         return(File(HtmlToWord.HtmlToWordMethod(html), "application/force-download", "hoadon.docx"));
     }
     catch (Exception ex)
     {
         return(Json(""));
     }
 }
Exemple #2
0
 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("");
     }
 }