MS报表小结

www.cnblogs.com/rock_chen


1.Report Viewer 选择
选择 MS ReportViewer,基于本地(本地、服务器)模式使用
原因:免费,有免费的报表设计器用 ReportBuilder。(ReportBuilder 1.0 配合 VS2008,ReportBuilder2.0配合VS2010)


2.Report Desgin interface

Designer获取模拟数据(Desginer 运行时数据)
interface IReportDesignData
{
    DataTable GetDesignData();
}

报表可选字段(Desginer 设计时可选字段)
interface IReportField
{
    DataTable GetFields();
}
备注:
Employee.Position.Department.DepartmentId会变为 Employee_Position_Department_DepartmentId
将属性拉平

3.Report Runtime interface

运行时获取真实数据
interface IReportData
{
    DataTable GetData();
}

4.常用元素

分组
交叉
动态列:根据定义动态修改rdl文件实现

5.报表参数
例如:PrintUser,PrintTime,etc

6.数据源参数
例如:A部门的人,B部门的人

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-08-07
  • 2021-12-30
猜你喜欢
  • 2021-05-20
  • 2021-07-10
  • 2021-11-27
  • 2022-12-23
  • 2021-11-16
  • 2021-08-14
相关资源
相似解决方案