Reputation: 363
Any good idea to use crystal report with MVC(ASP.net) application as a normal view like *.cshtml ,instead of *.aspx page.
Upvotes: 0
Views: 3984
Reputation: 363
Ok...Thanks Raphael...So final solution is, In MVC3 directly cannot use ReportViewer Control from *.chtml page.Can use report in two ways
Create an pdf file on fly from your control class Or
Create a aspx page from where you can show your report using report viewer.
Sample application with crystal report and MVC3 ,can check this.
http://code.msdn.microsoft.com/Using-Crystal-Report-in-bb0e6229
Upvotes: 1
Reputation: 1687
It isn't possible to directly use reportviewer inside razor pages. Here you have a link that gives you 2 workaround
Using Reportviewer Control, within a Razor view, in the MVC3 Framework
Upvotes: 0