与reportviewer一起工作 [英] working around with reportviewer

查看:99
本文介绍了与reportviewer一起工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...我想问问是否有人可以帮助我解决我的问题...您看到我创建了一个reportviewer,其数据源位于xml文件中...现在的问题是我想放来自另一个与我的数据源(我的xml文件)上的表无关的表的动态内容...
假设我有一个名为table_user的表的xml文件,并且现在有另一个名为not_related_table的表,我想在一个rdlc文件中显示[not_related_table]的内容和[table_user]的内容...
但是问题是似乎我只能使用1个数据集/数据源...当我尝试连接到包含[not_related_table]内容的第二个数据集时,它给出一个错误,指出找不到not_related_table的列/字段...

基本上我只想在一个rdlc中同时显示[not_related_table]的内容和[table_user]的内容...该怎么做?如果可能,您可以通过数据源[table_user]是xml文件的方式为我提供相应的代码,还是逐步实现此目标的代码?

我当时只是想传递一个参数,而这个参数是[not_related_table]的内容...我试图传递一个参数,但是它只是返回一个空字符串

hello guys... i would like to ask if anyone can help me with my problem... you see i have created a reportviewer that has its datasource on an xml file... now the problem is i want to put a dynamic content based from another table that is not related to the table on my datasource(my xml file)...
assuming i have an xml file with table named table_user and i have another table named not_related_table now i want to display the content of [not_related_table] and the content of [table_user] in one rdlc file...
but the problem is it seems that i can only use 1 dataset/datasource... when i try to connect to a second dataset that contains the content of [not_related_table] it gives an error that says cannot find the column/field of the not_related_table...

Basically i just want to display both the content of [not_related_table] and the content of [table_user] in one rdlc... how to do this? if possible can you provide me with the code for that or the step by step on how to achieved this?by the way the datasource [table_user] is an xml file,

i was thinking of just passing a parameter and this parameter are the contents of [not_related_table]... i tried passing a parameter but it just returns an empty string

推荐答案

检查这些

RDLC:如何在一个报告中打印多个表 [ ^ ]
多个表作为ReportViewer报表的数据源 [ ^ ]
具有多个数据集和报告参数的ReportViewer [
Check these

RDLC: How to print multiple tables in one report[^]
Multiple Tables as data source for ReportViewer Report[^]
ReportViewer with multiple dataset and report parameters[^]


这篇关于与reportviewer一起工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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