Click here to Skip to main content
15,911,789 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am working mvc razor 4.0 application. i create on ssrs report and that report can deployed successfully. now i want to retrieve the report from razor mvc application how can i do.

i wrote code like this

ServerReport src= new ServerReport();
src.ReportServerUrl = new Uri("http://node_10/ReportServer_SQL2012");
src.ReportPath = @"/Reports/Report1";
src.Refresh();

here i got the report , but how can i bind this report in razor application.

Note: i working only MVC razor only. not using aspx controls like report viewer
Posted

Can not use MVC and SSRS.

If you want use SSRS in your application. you should use mix (MVC - ASP.NET) to load your report
 
Share this answer
 
Comments
sai sagar 3-Jul-13 6:15am    
ya i mixed .aspx web page. now i write same code in page load it's working. it's fine. but i have a problem here. when i open that report for razor i created one master page extension with .cshtml. now how to add the this .cshtml page as master page to webform page
Anh Nguyen Trong 3-Jul-13 6:29am    
Please go here and try:

http://www.packtpub.com/article/mixing-asp.net-webforms-and-asp.net-mvc
and
http://blogs.msdn.com/b/sajoshi/archive/2010/06/16/asp-net-mvc-handling-ssrs-reports-with-reportviewer-part-i.aspx

It is a good example to work with MVC and SSRS
use the in your cshtml file..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900