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

推荐订阅源

Jina AI
Jina AI
Recent Announcements
Recent Announcements
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
A
About on SuperTechFans
Vercel News
Vercel News
博客园 - 【当耐特】
爱范儿
爱范儿
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
D
Docker
博客园 - 叶小钗
The Cloudflare Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
I
InfoQ
博客园 - 三生石上(FineUI控件)
博客园 - Franky
Microsoft Azure Blog
Microsoft Azure Blog
The GitHub Blog
The GitHub Blog
大猫的无限游戏
大猫的无限游戏
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

博客园 - 小潘

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到