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

HTTP Error 401.0 – Unauthorized

After login, unable to access the pages and below error message display. solution: Go to the project property 2. Change the 'Window Authentication' setting to 'Enabled'         A Philosophy of Software Design This book addresses the topic of software design: how to decompose complex software systems into modules (such as classes and …

Continue reading HTTP Error 401.0 – Unauthorized

TF400018: The local version table for the local workspace ‘pc name’;’user’ could not be opened. The workspace version table contains an unknown schema version.

  I had this problem yesterday, my nightmare. First thing come into my mind is to back all my project files. As I have a lot of branches in TFS for different projects. I'll share what I did to solve this issue. 1. Backup all projects. It takes a lot of time, but is worth …

Continue reading TF400018: The local version table for the local workspace ‘pc name’;’user’ could not be opened. The workspace version table contains an unknown schema version.