无法在 ASP.NET MVC 的 RDLC 报告中查看或添加网站数据源 [英] Can't see or add Website Data Sources in RDLC report in ASP.NET MVC

查看:40
本文介绍了无法在 ASP.NET MVC 的 RDLC 报告中查看或添加网站数据源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 RDLC 报告中,在 Visual Studio 2008 的设计"视图中,我们在网站数据源"选项卡中看不到任何内容,并且添加新数据源"按钮呈灰色显示.仅启用刷新按钮,单击它不会执行任何操作.我们的业务逻辑层返回业务对象列表,业务逻辑和业务对象项目都被 MVC 项目引用.这是一个MVC应用程序,所以没有App_Code文件夹.

In the RDLC report, in Design view in Visual Studio 2008, we don't see anything in the Website Data Sources tab and the button to Add New Data Source is grayed out. Only the Refresh button is enabled, and clicking it doesn't do anything. Our business logic layer returns Lists of business objects and the business logic and business object projects are both referenced by the MVC project. This is an MVC app, so there is no App_Code folder.

我们如何让我们的业务对象出现在网站数据源列表中,以便我们可以将字段从对象拖放到我们的 RDLC 报告中?

How do we get our business objects to appear in the Website Data Sources list so we can drag and drop fields from the object onto our RDLC report?

推荐答案

我想我遇到了与此相同的问题.

I think I suffered the same problem as this.

我通过关闭所有打开的 VS 窗口、清理、重建解决方案然后添加一个新的 WebForms 页面(是的,我知道它的 MVC)来解决这个问题,但它似乎触发了某些内容的刷新,并且当我们重新打开时数据源出现了并编辑了 rdlc 文件.

I solved this by closing all open VS windows, cleaning, rebuilding the solution then adding a new WebForms page (yes I know its MVC) but it then seemed to trigger a refresh in something and the data sources showed up when we reopened and editted the rdlc file.

这篇关于无法在 ASP.NET MVC 的 RDLC 报告中查看或添加网站数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆