Click here to Skip to main content
15,868,014 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
XML
Hello Everyone,
I'm trying to show RDLC report in MVC and stuck with a problem. As I can't show RDLC in Razor page as Razor doesn't have ReportViewer, I took a web form (.aspx) view in my View folder structure. In aspx view I easily accessed ReportViewer. I'm using 'Code First With Existing Database' approach. So, I'm not using any .edmx file or dataset to bind the report. I'm using my Model Class as Object Datasource to the RDLC report and while creating the report using report wizerd I've bound the datasource. Now when I hit the action I can see the report showing data in view page. But the problem is that I can see only one page. There are 32 pages as per the datasource and I can see only the first page( or any other page that I've set in the Load function inside the <script runat="server"> block).
But if I click on the next arrow nothing happens. It still shows the first page. I can't change the paging. Even the find option isn't working. I've set the debugger in the Load function and it hits the debugger only the first time the report is loading, not on any subsequent request like when I click the next button.

I've set processingMode=local as setting it to remote doesn't show the report.
I'm using MVC4 razor view but only this page is done in aspx view.
I'm new to both MVC and RDLC so a detailed solution will be very helpful.
Thank you.
Posted

1 solution

<big><code>&lt;&amp;<a href=""></a><a href=""></a>[<a href="" target="_blank">^</a>]</code></big>
 
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