c shap 。net做报表,很不错

上传者: mmhk01 | 上传时间: 2010-10-14 00:00:00 | 文件大小: 80KB | 文件类型: rar
这是以个c#做的报表例子,      //打开连接      conReport.Open();      //准备连接对象以把获取的数据放入数据集      cmdReport.CommandType = CommandType.Text;      cmdReport.Connection = conReport;      cmdReport.CommandText = "Select TOP 5 * FROM Products Order By ProductName";      //从命令对象中读取数据      drReport = cmdReport.ExecuteReader();      //有了ADO.NET,可把读取来的数据直接加载到数据集中      dsReport.Tables[0].Load(drReport);      //关闭读取及连接      drReport.Close();      conReport.Close();      //为查看器提供本地报表数据 this.reportViewer1.LocalReport.ReportEmbeddedResource =      "报表问题.rptProductList.rdlc";      //准备报表数据源      ReportDataSource rds = new ReportDataSource();      rds.Name = "dsProduct_dtProductList";      rds.Value = dsReport.Tables[0]; this.reportViewer1.LocalReport.DataSources.Add(rds);      //加载报表查看器 this.reportViewer1.RefreshReport();    }    catch (Exception ex)    {      //显示错误信息      MessageBox.Show(ex.Message);    }    finally    {      //检查连接是否仍然打开,如果是,关闭它。      if (conReport.State == ConnectionState.Open)      {        conReport.Close();      }

文件下载

资源详情

[{"title":"( 31 个子文件 80KB ) c shap 。net做报表,很不错","children":[{"title":"报表问题","children":[{"title":"报表问题","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"报表问题.vshost.exe <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"报表问题.pdb <span style='color:#111;'> 53.50KB </span>","children":null,"spread":false},{"title":"报表问题.exe <span style='color:#111;'> 48.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Form1.Designer.cs <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"dsProduct.xsc <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 471B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"报表问题.csproj.FileList.txt <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"RdlCompile.cache <span style='color:#111;'> 534B </span>","children":null,"spread":false},{"title":"RdlCompile.compiled <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"报表问题.rptProductList.rdlc <span style='color:#111;'> 16.35KB </span>","children":null,"spread":false},{"title":"报表问题.pdb <span style='color:#111;'> 53.50KB </span>","children":null,"spread":false},{"title":"报表问题.csproj.GenerateResource.Cache <span style='color:#111;'> 842B </span>","children":null,"spread":false},{"title":"报表问题.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"ResolveAssemblyReference.cache <span style='color:#111;'> 24.09KB </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"dsProduct.Designer.cs.dll <span style='color:#111;'> 16.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"报表问题.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"报表问题.exe <span style='color:#111;'> 48.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"dsProduct.xss <span style='color:#111;'> 855B </span>","children":null,"spread":false},{"title":"报表问题.csproj <span style='color:#111;'> 5.81KB </span>","children":null,"spread":false},{"title":"dsProduct.xsd <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"dsProduct.Designer.cs <span style='color:#111;'> 27.48KB </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"rptProductList.rdlc <span style='color:#111;'> 16.35KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"报表问题.sln <span style='color:#111;'> 925B </span>","children":null,"spread":false},{"title":"报表问题.suo <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • ljj810 :
    很受益啊,谢谢
    2013-12-29

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明