我如何动态选择报告查看器的记录 [英] how can i dynamically select records of report viewer

查看:119
本文介绍了我如何动态选择报告查看器的记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了Microsoft报表查看器,以生成报表,我的数据集包含表如下所示
-------------------------------------------------- -----------------------------
物理学|化学|生物学|会议|名称|卷号
12 | 14 | 15 | 2007 |阿里| 2
14 | 5 | 25 | 2006 | majid | 3
15 | 25 | 14 | 2007 |乌斯曼| 3
-------------------------------------------------- -----------------------------
我想显示基于会话的报告中的记录..
当我选择2007时,我具有会话的下拉列表,当我在下拉列表中选择2006时,它将仅在报表查看器中提供2006的记录.当我选择2007时,它将在报表查看器中提供2007的记录. 我该怎么做

i have created microsoft report viewer to generate reports my data set include table like this
-------------------------------------------------------------------------------
physics | chemistry | biology | session | name | roll no
12 | 14 | 15 | 2007 | ali | 2
14 | 5 | 25 | 2006 | majid | 3
15 | 25 | 14 | 2007 | usman | 3
-------------------------------------------------------------------------------
i want to display records based in report based on session..
i have dropdownlist for session when i select 2007 it will give the records of 2007 in report viewer when i select 2006 in dropdownlist it should give only the records of 2006 only in report viewer..
how can i do this

推荐答案



尝试根据选择获取数据集,然后将数据集绑定到报表.

将RDLC动态绑定到ReportViewer [ http://www.vbdotnetheaven.com/uploadfile/mahesh/building -reports-from-a-dataset-using-reportviewer/ [
Hi,

Try getting the dataset based on the selection and then bind the dataset to your report.

Dynamic Binding Of RDLC To ReportViewer[^]

http://www.vbdotnetheaven.com/uploadfile/mahesh/building-reports-from-a-dataset-using-reportviewer/[^]

hope this helps.


这篇关于我如何动态选择报告查看器的记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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