zoukankan      html  css  js  c++  java
  • reportview 实践学习

    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到 

  • 相关阅读:
    时间的计算
    中英文词频统计
    组合数据类型,英文词频统计
    作业二
    学号提取
    用for循环产生的网址
    温度转换
    身份证号码提取
    数字游戏
    更改mysql连接个数
  • 原文地址:https://www.cnblogs.com/pbc1984/p/1590180.html
Copyright © 2011-2022 走看看