如何在ASP.NET MVC中的rdlc报告中更改数据集名称 [英] How to change dataset name in rdlc report in ASP.NET MVC

查看:252
本文介绍了如何在ASP.NET MVC中的rdlc报告中更改数据集名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要更改我的rdlc报告的数据集。我改变它但创建新的rdlc报告但需要更新创建的数据集。



我尝试了什么:



我试图在xml视图中打开rdlc文件并试图改变但我很困惑。

I need to change dataset of my rdlc report.I cvan change it but creating new rdlc report but need to update dataset in created one.

What I have tried:

I have tried to open rdlc file in xml view and tried to change but i am confused.

推荐答案





RDLC(如果实际上它们是您要处理的那个)是客户端报告哪个存在于你的解决方案中您可以使用Visual Studio(IDE)直接更改报表定义。

此外,除了更改报告中的数据集详细信息之外,还需要确保将数据集传递给rdlc报告(rdlc报告必须使用代码中的完整数据集传递,而不像包含SQL的rdl报告其中在运行时执行的查询定义必须具有相同的结构。



使两端的结构(数据集字段/列)相同(在rdlc定义处和在将数据传递给报表的代码端)。



问候,

Sujay C。
Hi,

RDLC (if actually they are the one which you want to deal with) are the client side reports which exists inside you solution. You may change the report definition directly using Visual studio (IDE).
Further, more than changing the dataset details in report you need to make sure the dataset being passed to the rdlc report (rdlc reports must be passed with complete dataset from code, unlike rdl reports which contains the SQL query definition in them which gets executed at run-time) must be of same stucture.

Make the two structure (dataset fields/columns) same at both ends (at rdlc definition and at the code end where you pass the data to the report).

Regards,
Sujay C.


这篇关于如何在ASP.NET MVC中的rdlc报告中更改数据集名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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