c# rdlc报表使用
来源:互联网 发布:java简单金字塔代码 编辑:程序博客网 时间:2024/05/17 22:33
1.绑定报表到reportViewer1
获取报表路径
this.reportViewer1.LocalReport.ReportPath = Application.StartupPath + @"ReportRecord.rdlc";
2.设置参数值
ReportParameter parameter1= new ReportParameter(参数名称, 参数值);
3.传入参数
this.reportViewer1.LocalReport.SetParameters(new ReportParameter[] {parameter,parameter1,parameter2,parameter2.......parameterN });
4.传入表格数据集
//传入数据前清理报表上的内容
this.reportViewer1.LocalReport.DataSources.Clear();
this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("数据集名称", 数据集内容));
5.刷新报表
this.reportViewer1.RefreshReport();
6.Rdlc报表出现空白页解决方法
设置报表的属性 ConsumeConteinerWhitespace = True
0 0
- c# rdlc报表使用
- .C#中使用RDLC报表
- C#中使用RDLC报表(1)
- C# RDLC报表
- c# rdlc 报表
- RDLC 报表使用
- 使用RDLC报表(一)
- rdlc报表使用
- rdlc报表的使用
- 使用RDLC报表
- VS2015 使用RDLC报表
- C# RDLC报表(二)--使用自定义数据集
- C# 实现 RDLC 自定义报表
- C# RDLC子报表Subreport
- C# rdlc 报表学习总结
- 使用RDLC报表(1) -(4)
- rdlc报表使用详细方法
- 使用RDLC报表(1) -(4)
- 解决Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'问题
- How to Install JAVA on Ubuntu
- Gson简要使用笔记
- 大数据之“用户行为分析
- WebView中接口隐患与手机挂马利用
- c# rdlc报表使用
- ant非法字符:\65279 错误
- Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [activ
- ant打包时内存溢出
- 解决java 项目导入后出现的问题 ---cannot be read or is not a valid ZIP file
- 在配置hibernate.cfg.xml时需指定使用数据库的方言
- OAuth完全手册_国内篇
- SSL/TLS/DTLS对比
- Auth认证协议原理分析及使用方法