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

Repeat page header in each page – Crystal Reports

By default, crystal report will automatically display the page header in each page. But if there is more than one report, where now I have few subreports in a report where each subreport contain its own page header, it will not display the page header in a new page. I have tried to use this …

Continue reading Repeat page header in each page – Crystal Reports

Manual Cross Tab Dynamic Crystal Report

Lately I'm been involve in a lot of crystal reports and one of them is a cross-tab dynamic report which will grow vertically and horizontally. There are a lot of ways to do it. And I think the most easiest way is to use the cross-tab function in the Crystal report which directly pump in …

Continue reading Manual Cross Tab Dynamic Crystal Report