Reportview 动态绑定数据
来源:互联网 发布:网络活动地板 编辑:程序博客网 时间:2024/05/29 21:29
.net frame work 3.5 ReportView
1.建立rdlc文件,设计UI,绑定字段.新建一个dataset做数据源,主要是数据是临时的不需要持久化.
2.建立winform页面,拉一个MicrosoftreportViewer,选择一个新建的*.rdlc文件报表.
3.数据绑定,就是推拉模型,绑定报表要呈现的数据字段,绑定数据源
绑定代码:
reportViewer1.LocalReport.DataSources.Clear();
this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("dsNotice_Notice",
data.Notice));
this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("dsNotice_Details",
data.Details));
this.reportViewer1.RefreshReport();
数据源名称:集合_表 dataset_table,如:dsNotice_Notice.
数据源的值:表对象.
多张表就add多次.
每次绑定前最好先清空下datasources.
打印:报表宽大于高默认横向打印,反之为纵向打印。
- Reportview 动态绑定数据
- RDLC-ReportView控件动态绑定报表和数据源
- C#ReportView数据重新绑定、加入表报错以及分页问题
- C# 报表(reportview) 数据 绑定 (好像是水晶报表)
- ReportView 报表内部数据过滤
- ReportView
- dropdownlist 动态绑定数据
- 动态绑定报表数据
- ComboBox 动态绑定数据
- 动态绑定数据
- js数据动态绑定
- 动态数据绑定注意事项
- 网页数据动态绑定
- Repeater动态绑定数据
- xtraReprot 动态绑定数据 数据列动态
- DataGridView动态的绑定数据
- C# 动态绑定实体数据
- table伪动态数据绑定
- Liferay Poral 5.2.3 调试环境开发
- 22 - 29岁的人怎么工作
- CSS字符串的截取
- define and typedef
- dwr 入门例子
- Reportview 动态绑定数据
- 关于游标的初级使用方法
- Error: Node instance "xxx" instantiates undefined entity "xxx"
- Context 详解
- ImageMagick? & RMagick Installation Guide in VM
- 超星电子图书的阅读技巧提示
- fpga编译问题解决
- 关于“the project cannot be built”问题的解决
- XCELSIUS例子---柱形图部件的使用