Reporting Service本地报表(rdlc)的两种方式
来源:互联网 发布:js中单引号和双引号 编辑:程序博客网 时间:2024/04/29 09:37
rdlc其实是一个XML文件,这种报表必须通过ReportViewer才能显示出来。
一般有两种方式来使用它们
1. 如果不希望在程序发布之后去修改它们,例如我们程序自带的一些统计报表,我们不希望用户去修改,甚至删除它
这种情况,可以选择将该报表嵌入到程序集中
然后,怎么样读取这个嵌入的资源并且展现为报表呢?
this.reportViewer1.LocalReport.ReportEmbeddedResource = "NorthwindApplication.EmployeeOrderReport.rdlc";
需要注意的是,嵌入的资源名都会有namespace前缀的
这种做法的好处是报表定义得到了保护,但缺点也很明显,就是如果要修改定义,就得重新编译程序。
2. 如果希望报表定义可以由用户定制的话,这种情况就不会嵌入,而是将rdlc文件当作是内容文件随着应用程序一起发布
然后,在代码中如何使用这种报表呢
this.reportViewer1.LocalReport.ReportPath =”EmployeeOrderReport.rdlc“
- Reporting Service本地报表(rdlc)的两种方式
- Reporting Service RDLC报表如何获取 矩阵本表中的某一列的值
- [SSRS / RV](.rdlc报表)Reporting Services多印空白页的解決方式
- 通过程序的方式将Reporting Service 报表转成 PDF--- SQL Server Reporting Services 2005
- reporting service 2005的代码生成报表
- 分析Reporting Service的报表执行记录
- Reporting Service 报表入门
- Service学习(本地服务的两种启动方式以及跨进程服务)
- Asp.net 中使用Reporting Service(.rdlc)
- Reporting Service参数化报表
- 采用本地RDLC报表进行一维条码的打印
- [原创]微软BI专题-Reporting Services平台下报表数据筛选的两种方法
- Reporting Service报表VS水晶报表
- rdlc报表的使用
- RDLC报表(二)
- RDLC报表(一)
- RDLC报表(二)
- RDLC报表(三)
- 通过Hadoop的API对Job进行管理
- 一个自定义的文本框验证器(WindowsForms)
- 一个通用的报表显示窗口(WindowsForms)
- js处理table的选中行换色
- 关于保活定时器
- Reporting Service本地报表(rdlc)的两种方式
- MTK之后台发送中英文短信篇
- 由object不能比较引发的问题
- jasperReport实现动态列打印
- MATLAB中图像函数大全
- 如何实现单实例的MDI子窗体
- MOSS 2010 beta1的一个bug
- Light,More Light
- MOSS 2010 新特性之 开发人员仪表盘 Development Deshboard