惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
G
Google Developers Blog
Vercel News
Vercel News
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Jina AI
Jina AI
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
博客园 - 三生石上(FineUI控件)
MongoDB | Blog
MongoDB | Blog
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
H
Hackread – Cybersecurity News, Data Breaches, AI and More
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
Microsoft Security Blog
Microsoft Security Blog
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG

博客园 - 小潘

GreenPlum tidb 性能比较 hbase master 无法启动 hbase 集群写入能力优化-预分区、TTL的应用 TiSpark 初级应用 ETL-kettle 核心执行逻辑 HBase 写入优化 HBase ttl 验证 大数据多维分析平台的实践 TiDB在特来电的探索 Druid 基础使用-操作篇(Pivot、plyql) Druid 基础使用-操作篇(Imply ) Druid安装-单机 phoenix 索引修复-基本流程 Phoenix -修复表索引 oracle sql跟踪及‘相关问题 数据交换平台 linq 排序 学习一 开始学习LINQ
reportview 实践学习
小潘 · 2009-10-26 · via 博客园 - 小潘

1 环境

  创建新项目的时候 vs2008 没有reportview 向导 原因 :vs2008 安装tm的时候部分汉化后 导致 在vs 环境中修改成英文版本 问题解决

2 传递参数 自定义数据源

 注意点:

     a 创建数据源的ds名称 需要和报表配置的名称一致    

   DataSet ds = bll.GetInfor(whereInfor);

            Microsoft.Reporting.WebForms.ReportDataSource rds = new Microsoft.Reporting.WebForms.ReportDataSource("DataSet1_classzsQuery", ds.Tables[0]);

            ReportParameter title = new ReportParameter();

            title.Name = "Title";

            title.Values.Add(titleContent);

            ReportViewer1.LocalReport.SetParameters(new ReportParameter[] {title}); 

    this.ReportViewer1.LocalReport.DataSources.Clear();

            this.ReportViewer1.LocalReport.DataSources.Add(rds); 

     另外 发现reportView的 矩阵 功能很强大 类似于以前用到的多维查询 速度还可以

3 部署

   web的部署需要在bin下 有3个dll 

   Microsoft.ReportViewer.Common.dll   Microsoft.ReportViewer.ProcessingObjectModel .dll Microsoft.ReportViewer.WebForms.dll

  这三个dll 可以Google到