Answered by:
rdlc report datasource not found in mvc4

Question
-
User-554800799 posted
http://www.codeproject.com/Articles/473844/Using-Custom-Data-Source-to-create-RDLC-Reports
i follow this sample to develop my report in mvc4 environment, while config in report wizard, datasource don shows any item for me to select.
so i create (asp.net web forms application) project to test the rdlc report wizard again, i success to get cpReportCustomData.Data in datasource.
i already checked the steps are correct, just don know why cpReportCustomData.Data disappear in datasource (mvc4)
Wednesday, August 21, 2013 2:07 AM
Answers
-
User-734925760 posted
Hi Lye,
As we create a RDLC report in MVC4 aaplication, the data source drop down list is empty, there is a solution by adding a web form page to the MVC project.
Please refer to the link below:
#RDLC Reports in MVC Web application:
http://ata2931977.blogspot.com/2012/07/rdlc-reports-in-mvc-web-application.html
Also we can create the report setps by steps via the link below:
http://www.codeproject.com/Articles/609580/Prototype-MVC4-Razor-ReportViewer-RDLC
Hope it’s useful for you.
Best Regards,
Michelle Ge
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, August 22, 2013 9:28 AM -
User2103319870 posted
Hi,
To Create a SSRS Reports in MVC
Follow the steps mentioned in this link to create SSRS reports.
Creating SSRS reports in ASP.NET
This will make the SSRS to load with data in aspx page and till the above steps it’s normal like we creating SSRS reports in .Net.
TO show the reports in MVC
We need to have a place holder which will load the aspx page. Use iframe for loading the aspx page
Add an iframe to your .cshtml page and assign the src to point to Reports.aspx page.
<iframe runat="server" id="Reports" src="~/Reports.aspx" width="95%" height="460"></iframe>
Hope this helps
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, August 22, 2013 6:28 PM
All replies
-
User-734925760 posted
Hi Lye,
As we create a RDLC report in MVC4 aaplication, the data source drop down list is empty, there is a solution by adding a web form page to the MVC project.
Please refer to the link below:
#RDLC Reports in MVC Web application:
http://ata2931977.blogspot.com/2012/07/rdlc-reports-in-mvc-web-application.html
Also we can create the report setps by steps via the link below:
http://www.codeproject.com/Articles/609580/Prototype-MVC4-Razor-ReportViewer-RDLC
Hope it’s useful for you.
Best Regards,
Michelle Ge
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, August 22, 2013 9:28 AM -
User2103319870 posted
Hi,
To Create a SSRS Reports in MVC
Follow the steps mentioned in this link to create SSRS reports.
Creating SSRS reports in ASP.NET
This will make the SSRS to load with data in aspx page and till the above steps it’s normal like we creating SSRS reports in .Net.
TO show the reports in MVC
We need to have a place holder which will load the aspx page. Use iframe for loading the aspx page
Add an iframe to your .cshtml page and assign the src to point to Reports.aspx page.
<iframe runat="server" id="Reports" src="~/Reports.aspx" width="95%" height="460"></iframe>
Hope this helps
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, August 22, 2013 6:28 PM