Return PDF/TXT/XLS/PXLS to browser in ASP.NET MVC using crystal report

This example is using SAP crystal report for Visual studio. Can get a copy here for free. Below sample show how to generate different file type format report to the browser dynamically.   In Controller: public ActionResult PrintReport(string filters, string fileType) { var page = FilterPage(new Page<StaffOrder>(), filters); report = ReportUtil.GetReport<StaffOrder, StaffOrderReport>(StaffOrderModel.PropertyNames, page.result.OrderBy(x => x.StaffName).ThenBy(z …

Continue reading Return PDF/TXT/XLS/PXLS to browser in ASP.NET MVC using crystal report