Ejemplo n.º 1
0
 protected FileResult PdfResult(string fileName, IPagedList list)
 {
     list.NeedPage = false;
     list.DoSearch();
     return(File(list.GeneratePDF(), "application/pdf", fileName + ".pdf"));
 }
Ejemplo n.º 2
0
 protected FileResult ExcelResult(string fileName, IPagedList list)
 {
     list.NeedPage = false;
     list.DoSearch();
     return(File(list.GenerateExcel(), "application/x-excel", fileName + ".xls"));
 }