nammadhu
nammadhu

Reputation: 363

Using Crystal Report in MVC(ASP.net) application...(Not using *.aspx file)

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

Answers (2)

nammadhu
nammadhu

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

  1. Create an pdf file on fly from your control class Or

  2. 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

Raphael
Raphael

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

Related Questions